| FROM debian:10-slim |
| MAINTAINER coral-support@google.com |
| |
| RUN /bin/bash -c '\ |
| apt-get update && \ |
| apt-get install -y apt-transport-https ca-certificates sudo debian-archive-keyring gnupg gpg-agent aptly aptly-api aptly-publisher && \ |
| apt-get clean' |
| |
| ADD --chown=aptly-api:aptly-api start-aptly-api.sh /start-aptly-api.sh |
| ADD --chown=aptly-api:aptly-api update-mirror.sh /update-mirror.sh |
| ADD --chown=aptly-api:aptly-api aptly-api.conf /etc/aptly-api.conf |
| ADD --chown=aptly-api:aptly-api gpg-agent.conf /etc/gpg-agent.conf |
| |
| VOLUME ['/var/lib/aptly-api', '/srv/aptly-publish-fs'] |
| WORKDIR /var/lib/aptly-api |
| EXPOSE 8080 |
| |
| ENV GIN_MODE=release |