mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update
This commit is contained in:
parent
53fba93b46
commit
7a3205a2d0
@ -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 groupadd ftpgroup && useradd -g ftpgroup -m ftpuser
|
||||
|
||||
ENV PURE_PASSWDFILE /etc/pure-ftpd/pureftpd.passwd
|
||||
ENV PURE_DBFILE /etc/pure-ftpd/pureftpd.pdb
|
||||
ENV MAXCLIENTSPERIP 2
|
||||
ENV USERBANDWIDTH 1024:1024
|
||||
ENV PURE_LOGIN puredb:/etc/pure-ftpd/pureftpd.pdb
|
||||
ENV PURE_MAXCLIENTSPERIP 2
|
||||
ENV PURE_USERBANDWIDTH 1024:1024
|
||||
|
||||
EXPOSE 21
|
||||
VOLUME /home/ftpuser /etc/pure-ftpd
|
||||
|
||||
CMD pure-ftpd --login puredb:$PURE_DBFILE \
|
||||
--maxclientsperip $MAXCLIENTSPERIP \
|
||||
--userbandwidth $USERBANDWIDTH \
|
||||
CMD pure-ftpd --login $PURE_LOGIN \
|
||||
--maxclientsperip $PURE_MAXCLIENTSPERIP \
|
||||
--userbandwidth $PURE_USERBANDWIDTH \
|
||||
--createhomedir
|
||||
|
Loading…
Reference in New Issue
Block a user