docker/pure-ftpd/Dockerfile
2018-08-06 17:24:19 +08:00

15 lines
490 B
Docker

# see also https://github.com/stilliard/docker-pure-ftpd
FROM stilliard/pure-ftpd
ENV PUBLICHOST localhost
ENV FTP_USER_HOME=/home/ftpusers \
FTP_USER_NAME=ftp \
FTP_USER_PASS=ftp
COPY ./create_user.sh /create_user.sh
RUN chmod +x /create_user.sh
RUN /create_user.sh
# Define default command.
CMD /run.sh --maxclientsnumber 30 --maxclientsperip 10 --clientcharset utf8 --login puredb:/etc/pure-ftpd/pureftpd.pdb --noanonymous -j -R -P $PUBLICHOST --passiveportrange 30000:30059