docker-ftps/Dockerfile

18 lines
504 B
Docker
Raw Normal View History

2019-05-17 22:41:50 +00:00
FROM alpine:edge
RUN \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
2020-08-12 14:13:34 +00:00
apk -U add proftpd proftpd-mod_tls proftpd-mod_ifsession proftpd-utils openssl perl && \
2020-08-12 14:07:38 +00:00
mkdir -p /var/run/proftpd /etc/proftpd/custom.conf.d/
2019-05-17 22:41:50 +00:00
COPY custom.conf /etc/proftpd/conf.d/custom.conf
COPY run.sh /run.sh
2022-01-13 07:48:57 +00:00
COPY cron.sh /cron.sh
2019-05-17 22:41:50 +00:00
2022-01-13 07:48:57 +00:00
RUN \
chmod +x /run.sh && \
chmod +x /cron.sh && \
ln -s /cron.sh /etc/periodic/15min/reconfigure_certs.sh
2019-05-17 22:41:50 +00:00
ENTRYPOINT ["/run.sh"]