2023-08-08 21:35:23 +00:00
|
|
|
FROM alpine:3.18.3
|
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 \
|
2023-01-01 15:55:50 +00:00
|
|
|
vsftpd==3.0.5-r2
|
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
|