「🏗️」 wip: FTP should be working but f*ck it let's drink beers
This commit is contained in:
@ -1,11 +1,39 @@
|
||||
FROM inception-nginx
|
||||
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"
|
||||
|
||||
RUN apk add vsftpd
|
||||
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
|
||||
|
||||
CMD [ "vsftpd" ]
|
||||
STOPSIGNAL SIGQUIT
|
||||
|
||||
CMD [ "vsftpd", "/etc/vsftpd/vsftpd.conf" ]
|
||||
|
@ -9,10 +9,10 @@ ftpd_banner=Welcome to your WordPress FTP server.
|
||||
chroot_local_user=YES
|
||||
allow_writeable_chroot=YES
|
||||
user_sub_token=$USER
|
||||
local_root=/var/www/wordpress
|
||||
local_root=/var/ftp
|
||||
|
||||
listen=YES
|
||||
listen_port=21
|
||||
listen_port=2100
|
||||
listen_address=0.0.0.0
|
||||
seccomp_sandbox=NO
|
||||
|
||||
|
Reference in New Issue
Block a user