Dockerfile 784 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. ENV PATH=$PATH:/opt/google-cloud-sdk/bin
  9. USER root
  10. RUN pip install awscli && \
  11. curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-222.0.0-linux-x86_64.tar.gz | \
  12. tar xvzf - -C /opt && \
  13. apt update && \
  14. apt install -y createrepo expect && \
  15. apt-get autoremove -y && \
  16. rm -rf /var/lib/apt/lists/*
  17. COPY --from=0 /go/bin/aptly /usr/local/bin/aptly
  18. USER circleci