add ftp server
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
vsftpd \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY conf/vsftpd.conf /etc/vsftpd.conf
|
||||
COPY tools/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
|
||||
RUN echo "/usr/sbin/nologin" >> /etc/shells \
|
||||
&& chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
EXPOSE 21 21100-21110
|
||||
|
||||
ENTRYPOINT ["entrypoint.sh"]
|
||||
Reference in New Issue
Block a user