mirror of
https://github.com/vimagick/dockerfiles.git
synced 2026-01-04 20:14:56 +01:00
add pure-ftpd
This commit is contained in:
22
pure-ftpd/Dockerfile
Normal file
22
pure-ftpd/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
#
|
||||
# Dockerfile for pure-ftpd
|
||||
#
|
||||
|
||||
FROM debian:jessie
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
RUN apt-get update && apt-get install -y pure-ftpd vim-tiny && rm -rf /var/lib/apt/lists/*
|
||||
RUN groupadd ftpgroup && useradd -g ftpgroup -s /bin/bash -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
|
||||
|
||||
EXPOSE 21
|
||||
VOLUME /home/ftpuser
|
||||
|
||||
CMD pure-ftpd --login puredb:$PURE_DBFILE \
|
||||
--maxclientsperip $MAXCLIENTSPERIP \
|
||||
--userbandwidth $USERBANDWIDTH \
|
||||
--createhomedir
|
||||
Reference in New Issue
Block a user