Browse Source

pyftpd-sink v0.3;
added env vars $FTP_CONTROL_PORT & $FTP_PASSIVE_PORT

Fabian Peter Hammerle 5 years ago
parent
commit
8406504671
1 changed files with 4 additions and 2 deletions
  1. 4 2
      Dockerfile

+ 4 - 2
Dockerfile

@@ -8,10 +8,12 @@ USER ftp-sink
 ENV PATH "${PATH}:/home/ftp-sink/.local/bin"
 
 VOLUME /sink
-EXPOSE 2121 62121
 ENV FTP_USERNAME user
 ENV FTP_PASSWORD_SHA256 2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b
+ENV FTP_CONTROL_PORT 2121
+ENV FTP_PASSIVE_PORT 62121
+EXPOSE $FTP_CONTROL_PORT $FTP_PASSIVE_PORT
 
-RUN pip install --user pyftpd-sink==0.2
+RUN pip install --user pyftpd-sink==0.3
 
 CMD ["pyftpd-sink", "--root-dir", "/sink"]