diff --git a/Dockerfile b/Dockerfile index 3350ed5..23e820d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,11 @@ FROM ubuntu -RUN apt-get update -y -RUN apt-get install -y proftpd +RUN apt-get update && apt-get install -y apt-transport-https && apt-get install -y proftpd && apt-get install sudo ADD launch /launch ADD proftpd.conf /etc/proftpd/proftpd.conf -RUN sudo chown root:root /etc/proftpd/proftpd.conf -RUN mkdir /ftp +RUN sudo chown root:root /etc/proftpd/proftpd.conf && mkdir /ftp -EXPOSE 21 -EXPOSE 20 +EXPOSE 21 20 37185-37190 ENTRYPOINT /launch diff --git a/proftpd.conf b/proftpd.conf index 56eaf5a..98642a5 100644 --- a/proftpd.conf +++ b/proftpd.conf @@ -1,7 +1,9 @@ ServerName "proftpd" DefaultRoot /ftp User root - + +PassivePorts 37185 37190 + RequireValidShell off MaxClients 10