1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
This commit is contained in:
kev 2015-06-09 23:57:46 +08:00
parent 53fba93b46
commit 7a3205a2d0

View File

@ -8,15 +8,14 @@ MAINTAINER kev <noreply@datageek.info>
RUN apt-get update && apt-get install -y pure-ftpd && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y pure-ftpd && rm -rf /var/lib/apt/lists/*
RUN groupadd ftpgroup && useradd -g ftpgroup -m ftpuser RUN groupadd ftpgroup && useradd -g ftpgroup -m ftpuser
ENV PURE_PASSWDFILE /etc/pure-ftpd/pureftpd.passwd ENV PURE_LOGIN puredb:/etc/pure-ftpd/pureftpd.pdb
ENV PURE_DBFILE /etc/pure-ftpd/pureftpd.pdb ENV PURE_MAXCLIENTSPERIP 2
ENV MAXCLIENTSPERIP 2 ENV PURE_USERBANDWIDTH 1024:1024
ENV USERBANDWIDTH 1024:1024
EXPOSE 21 EXPOSE 21
VOLUME /home/ftpuser /etc/pure-ftpd VOLUME /home/ftpuser /etc/pure-ftpd
CMD pure-ftpd --login puredb:$PURE_DBFILE \ CMD pure-ftpd --login $PURE_LOGIN \
--maxclientsperip $MAXCLIENTSPERIP \ --maxclientsperip $PURE_MAXCLIENTSPERIP \
--userbandwidth $USERBANDWIDTH \ --userbandwidth $PURE_USERBANDWIDTH \
--createhomedir --createhomedir