1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/vsftpd/Dockerfile

34 lines
808 B
Docker
Raw Normal View History

2015-07-27 16:36:02 +02:00
#
# Dockerfile for vsftpd
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
2016-01-31 17:04:20 +02:00
RUN set -xe \
&& apk add -U vsftpd \
&& rm -rf /var/cache/apk/*
RUN { \
2016-01-31 18:37:18 +02:00
echo "allow_writeable_chroot=YES"; \
echo "chroot_local_user=YES"; \
2016-01-31 17:04:20 +02:00
echo "ftpd_banner=Welcome to VSFTPD service."; \
echo "local_enable=YES"; \
2016-01-31 19:53:38 +02:00
echo "no_anon_password=YES"; \
2016-01-31 18:37:18 +02:00
echo "pasv_addr_resolve=YES"; \
echo "pasv_address=my-ftp-server"; \
echo "pasv_enable=YES"; \
echo "pasv_max_port=30100"; \
echo "pasv_min_port=30000"; \
echo "port_enable=YES"; \
2016-01-31 17:04:20 +02:00
echo "seccomp_sandbox=NO"; \
2016-01-31 18:37:18 +02:00
echo "write_enable=YES"; \
2016-01-31 17:04:20 +02:00
} >> /etc/vsftpd/vsftpd.conf
VOLUME /var/lib/ftp
WORKDIR /var/lib/ftp
2015-07-27 16:36:02 +02:00
EXPOSE 21
2015-07-27 17:01:22 +02:00
CMD ["vsftpd", "/etc/vsftpd/vsftpd.conf"]