docker-ftp-server/Dockerfile

17 lines
362 B
Text
Raw Normal View History

FROM alpine:3.16.3
2020-07-10 16:27:43 +00:00
ENV FTP_USER=foo \
FTP_PASS=bar \
GID=1000 \
UID=1000
2020-07-10 16:27:43 +00:00
RUN apk add --no-cache --update \
vsftpd==3.0.5-r1
2020-07-10 16:27:43 +00:00
2020-07-26 22:12:52 +00:00
COPY [ "/src/vsftpd.conf", "/etc" ]
COPY [ "/src/docker-entrypoint.sh", "/" ]
2020-07-10 16:27:43 +00:00
CMD [ "/usr/sbin/vsftpd" ]
ENTRYPOINT [ "/docker-entrypoint.sh" ]
2021-04-12 19:16:46 +00:00
EXPOSE 20/tcp 21/tcp 40000-40009/tcp
2020-09-06 22:53:26 +00:00
HEALTHCHECK CMD netstat -lnt | grep :21 || exit 1