2022-08-20 20:08:29 +00:00
|
|
|
FROM alpine:3.16.2
|
2020-07-10 16:27:43 +00:00
|
|
|
ENV FTP_USER=foo \
|
2020-09-14 23:21:18 +00:00
|
|
|
FTP_PASS=bar \
|
|
|
|
GID=1000 \
|
|
|
|
UID=1000
|
2020-07-10 16:27:43 +00:00
|
|
|
|
|
|
|
RUN apk add --no-cache --update \
|
2022-01-22 22:49:15 +00:00
|
|
|
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
|