Dockerfile 880 B

12345678910111213141516171819202122232425
  1. FROM circleci/golang:1.11
  2. RUN git clone https://github.com/aptly-dev/aptly $GOPATH/src/github.com/aptly-dev/aptly && \
  3. cd $GOPATH/src/github.com/aptly-dev/aptly && \
  4. # pin aptly to a specific commit after 1.3.0 that contains gpg2 support
  5. git reset --hard a64807efdaf5e380bfa878c71bc88eae10d62be1 && \
  6. make install
  7. FROM circleci/python:2.7-stretch
  8. USER root
  9. RUN pip install -U awscli crcmod && \
  10. curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-222.0.0-linux-x86_64.tar.gz | \
  11. tar xvzf - -C /opt && \
  12. apt update && \
  13. apt install -y createrepo expect && \
  14. apt-get autoremove -y && \
  15. rm -rf /var/lib/apt/lists/* && \
  16. ln -s /opt/google-cloud-sdk/bin/gsutil /usr/bin/gsutil && \
  17. ln -s /opt/google-cloud-sdk/bin/gcloud /usr/bin/gcloud
  18. COPY --from=0 /go/bin/aptly /usr/local/bin/aptly
  19. USER circleci