Inception/srcs/requirements/ftp/Dockerfile
2025-07-17 15:07:07 +02:00

18 lines
448 B
Docker

FROM alpine:3.20
# Accept build argument for host user ID
ARG HOST_UID=1000
RUN apk add --no-cache \
vsftpd \
&& 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