inception/srcs/requirements/ftp/Dockerfile

15 lines
414 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
RUN apk add pure-ftpd --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
2023-08-10 10:32:03 +02:00
#RUN apk add vsftpd
#COPY srcs/start.sh /root/start.sh
#COPY srcs/vsftpd.conf /etc/vsftpd/vsftpd.conf
2023-06-25 05:25:27 +02:00
WORKDIR /root/
RUN adduser --disabled-password admin
RUN echo "admin:password" | chpasswd
2023-08-10 10:32:03 +02:00
CMD pure-ftpd -p 21000:21000
2023-06-25 05:25:27 +02:00
EXPOSE 21/tcp
EXPOSE 21000/tcp