20 lines
664 B
Docker
20 lines
664 B
Docker
FROM debian:stretch
|
|
MAINTAINER Benjamin Bohard
|
|
|
|
RUN apt update && apt install -y ca-certificates gnupg1 incron && apt clean
|
|
COPY etc/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 etc/aptly.conf /etc/aptly.conf
|
|
COPY etc/gpg.conf /root/.gnupg/gpg.conf
|
|
COPY etc/gpg-agent.conf /root/.gnupg/gpg-agent.conf
|
|
COPY srv/aptly_init.sh /srv/aptly_init.sh
|
|
COPY srv/aptly_add.sh /srv/aptly_add.sh
|
|
|
|
COPY etc/incron.d/aptly.conf /etc/incron.d/aptly.conf
|
|
|
|
CMD ["/srv/aptly_init.sh"]
|