inception/srcs/requirements/ftp/Dockerfile

13 lines
280 B
Docker
Raw Normal View History

2023-06-25 05:25:27 +02:00
FROM alpine
RUN sleep 10
RUN apk update
RUN apk add openssl
2023-08-10 12:12:21 +02:00
RUN apk add pure-ftpd
2023-06-25 05:25:27 +02:00
WORKDIR /root/
2023-08-10 12:12:21 +02:00
COPY srcs/pure-ftpd.conf /etc/pure-ftp.conf
2023-06-25 05:25:27 +02:00
RUN adduser --disabled-password admin
RUN echo "admin:password" | chpasswd
2023-08-10 12:12:21 +02:00
CMD pure-ftpd /etc/pure-ftp.conf
2023-06-25 05:25:27 +02:00
EXPOSE 21/tcp
EXPOSE 21000/tcp