update base image; add compose file

This commit is contained in:
2025-05-06 22:15:57 +02:00
parent 19008464f4
commit 1345bbd50e
10 changed files with 72 additions and 20 deletions

View File

@@ -1,4 +1,7 @@
FROM debian:stretch
FROM debian:stable
LABEL maintainer="Luca Derderian <luca@wululu.de>"
LABEL version="${VERSION:-2.0}"
ARG FTP_UID=48
ARG FTP_GID=48
@@ -9,24 +12,25 @@ RUN set -x \
RUN set -x \
&& apt-get update \
&& apt-get install -y --no-install-recommends vsftpd db5.3-util whois \
&& apt-get -y full-upgrade \
&& apt-get install -y --no-install-recommends vsftpd db-util whois gettext-base \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
;
RUN set -x \
&& mkdir -p /var/run/vsftpd/empty /etc/vsftpd/user_conf /var/ftp /srv \
&& mkdir -p /var/run/vsftpd/empty /etc/vsftpd/user_conf /var/ftp /srv /templates \
&& touch /var/log/vsftpd.log \
&& rm -rf /srv/ftp \
;
COPY vsftpd*.conf /etc/
COPY vsftpd*.conf /templates/
COPY vsftpd_virtual /etc/pam.d/
COPY *.sh /
VOLUME ["/etc/vsftpd", "/srv"]
EXPOSE 21 4559 4560 4561 4562 4563 4564
EXPOSE 21
ENTRYPOINT ["/entry.sh"]
CMD ["vsftpd"]