19 lines
423 B
Docker
19 lines
423 B
Docker
FROM alpine:3.20
|
|
|
|
|
|
ARG HOST_UID=1000
|
|
|
|
RUN apk add --no-cache \
|
|
vsftpd \
|
|
netcat-openbsd \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
COPY ./conf/vsftpd.conf /etc/vsftpd/vsftpd.conf
|
|
COPY ./tools/docker-entrypoint.sh /docker-entrypoint.sh
|
|
RUN chmod +x /docker-entrypoint.sh
|
|
|
|
EXPOSE 20 21 30000-30009
|
|
|
|
CMD ["/docker-entrypoint.sh"]
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
|
CMD nc -z localhost 21 || exit 1 |