proftp docker build

This commit is contained in:
2024-11-22 22:18:09 -06:00
commit b6391b6cb6
2 changed files with 48 additions and 0 deletions

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM debian:bullseye-slim
RUN apt update && apt install -y proftpd && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN sed -i "s/# DefaultRoot/DefaultRoot /" /etc/proftpd/proftpd.conf
EXPOSE 20 21
ADD docker-entrypoint.sh /usr/local/sbin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/sbin/docker-entrypoint.sh"]
CMD ["proftpd","--nodaemon"]