inception/srcs/requirements/ftp/Dockerfile
Danny Houtworm 1ef25ab8b1 bla
2023-08-13 21:02:18 +00:00

14 lines
303 B
Docker

FROM alpine
RUN sleep 10
RUN apk update
RUN apk add openssl
RUN apk add pure-ftpd
WORKDIR /root/
COPY srcs/pure-ftpd.conf /etc/pure-ftp.conf
RUN adduser --disabled-password admin
RUN echo "admin:password" | chpasswd
CMD pure-ftpd -p 21000:21000 -P 127.0.0.1
EXPOSE 21/tcp
EXPOSE 20/tcp
EXPOSE 21000/tcp