inception/srcs/ftp/Dockerfile
2023-06-09 03:52:50 +02:00

16 lines
452 B
Docker

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
RUN apk add telegraf
COPY srcs/start.sh /root/start.sh
COPY srcs/vsftpd.conf /etc/vsftpd/vsftpd.conf
COPY srcs/telegraf.conf /etc/telegraf/telegraf.conf
WORKDIR /root/
RUN adduser --disabled-password admin
RUN echo "admin:password" | chpasswd
CMD sh start.sh
EXPOSE 21/tcp
EXPOSE 21000/tcp