mirror of
https://gitee.com/kennylee/docker.git
synced 2024-12-02 03:48:15 +08:00
35 lines
665 B
Docker
Executable File
35 lines
665 B
Docker
Executable File
# Pure ftp-Server
|
|
#
|
|
# VERSION 0.0.1
|
|
# Base image: https://github.com/stilliard/docker-pure-ftpd
|
|
# Command format: Instruction [arguments command] ..
|
|
|
|
FROM stilliard/pure-ftpd
|
|
|
|
MAINTAINER kennylee26 <kennylee26@gmail.com>
|
|
|
|
ENV FTP_USER_HOME=/home/ftpusers
|
|
ENV FTP_USER=ftp
|
|
ENV FTP_PWD=ftp
|
|
ENV TZ=Asia/Shanghai
|
|
|
|
RUN curl http://mirrors.163.com/.help/sources.list.jessie>/etc/apt/sources.list
|
|
|
|
RUN apt-get -y update
|
|
RUN apt-get -y install vim curl wget
|
|
|
|
RUN apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
VOLUME /etc/pure-ftpd
|
|
VOLUME $FTP_USER_HOME
|
|
|
|
# Define default command.
|
|
EXPOSE 21/tcp 30000-30009
|
|
|
|
ADD run.sh /run.sh
|
|
RUN chmod +x /*.sh
|
|
|
|
CMD ["/run.sh"]
|
|
|