inception/srcs/requirements/ftp/Dockerfile

14 lines
303 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-13 23:02:18 +02:00
CMD pure-ftpd -p 21000:21000 -P 127.0.0.1
2023-06-25 05:25:27 +02:00
EXPOSE 21/tcp
2023-08-13 23:02:18 +02:00
EXPOSE 20/tcp
2023-06-25 05:25:27 +02:00
EXPOSE 21000/tcp