1
0

🏗️」 wip: Removed ftp server and started borgbackup container

This commit is contained in:
2025-03-03 15:18:16 +01:00
parent 2673f6ef0b
commit 25ec0ebb31
9 changed files with 228 additions and 175 deletions

View File

@ -1,39 +0,0 @@
FROM scratch as builder
ADD docker/alpine/alpine-minirootfs-3.21.2-x86_64.tar.gz /
RUN apk add --no-cache go
WORKDIR /build
COPY go.mod /build/go.mod
COPY cmd /build/cmd
COPY internal /build/internal
RUN cd /build \
&& go build git.keyzox.me/42_adjoly/inception/cmd/vsftpd/entrypoint
FROM scratch
ADD docker/alpine/alpine-minirootfs-3.21.2-x86_64.tar.gz /
LABEL maintainer="KeyZox"
LABEL version="0.1"
COPY --from=builder /build/entrypoint /docker-entrypoint
COPY docker/bonus/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf
RUN apk add vsftpd \
&& mkdir -p /var/ftp \
&& mkdir -p /docker-entrypoint.d
VOLUME /var/ftp
ENTRYPOINT [ "/docker-entrypoint" ]
WORKDIR /etc/vsftpd
EXPOSE 21
EXPOSE 30000-30100
STOPSIGNAL SIGQUIT
CMD [ "vsftpd", "/etc/vsftpd/vsftpd.conf" ]

View File

@ -1,25 +0,0 @@
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
ftpd_banner=Welcome to your WordPress FTP server.
chroot_local_user=YES
allow_writeable_chroot=YES
user_sub_token=$USER
local_root=/var/ftp
listen=YES
listen_port=2100
listen_address=0.0.0.0
seccomp_sandbox=NO
pasv_enable=YES
pasv_min_port=30000
pasv_max_port=30100
userlist_enable=YES
userlist_file=/etc/vsftpd/vsftpd.userlist
userlist_deny=NO