Public Repository

Last pushed: 2 years ago
Short Description
little python ftp server for testing
Full Description
FROM        debian:jessie

RUN        apt-get update \
    &&    apt-get install -y --no-install-recommends python-pyftpdlib \
    &&    apt-get clean \
    &&    rm -rf /var/lib/apt/lists/*

COPY        server.py /server.py
RUN        mkdir /ftp

#ENV        FTP_IPADDRESS        192.168.99.100
ENV        FTP_USERS        test1,test2
ENV        FTP_TEST1_USERNAME    test1
ENV        FTP_TEST1_PASSWORD    test1-1234
ENV        FTP_TEST1_HOME        /ftp/test1
ENV        FTP_TEST2_USERNAME    test2
ENV        FTP_TEST2_PASSWORD    test2-1234
ENV        FTP_TEST2_HOME        /ftp/test2

CMD        ["python", "server.py"]
Docker-compose
pyftpd:
  image: dennisbell/pyftpd
  ports:
    - "20:20"
    - "21:21"
    - "12020:12020-12025:12025"
  environment:
    - FTP_IPADDRESS=192.168.99.102
Docker Pull Command
Owner
dennisbell

Comments (0)