FROM debian:stretch MAINTAINER Benjamin Bohard RUN apt update && apt install -y ca-certificates gnupg1 && apt clean COPY aptly.sources.list /etc/apt/sources.list.d/aptly.list RUN apt-key adv --keyserver pool.sks-keyservers.net --recv-keys ED75B5A4483DA07C RUN apt update && apt install -y aptly && apt clean VOLUME ["/signing-key", "/packages"] EXPOSE 8080 COPY aptly.conf /etc/aptly.conf COPY gpg.conf /root/.gnupg/gpg.conf COPY gpg-agent.conf /root/.gnupg/gpg-agent.conf COPY aptly.sh /srv/aptly.sh CMD ["/srv/aptly.sh"]