17 lines
363 B
Docker
17 lines
363 B
Docker
FROM alpine:3.12.0
|
|
|
|
ENV FTP_USER=foo \
|
|
FTP_PASS=bar \
|
|
GID=1000 \
|
|
UID=1000
|
|
|
|
RUN apk add --no-cache --update \
|
|
vsftpd==3.0.3-r6
|
|
|
|
COPY [ "/src/vsftpd.conf", "/etc" ]
|
|
COPY [ "/src/docker-entrypoint.sh", "/" ]
|
|
|
|
CMD [ "/usr/sbin/vsftpd" ]
|
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
|
EXPOSE 20/tcp 21/tcp 40000-40009/tcp
|
|
HEALTHCHECK CMD netstat -lnt | grep :21 || exit 1
|