mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
29 lines
684 B
Docker
29 lines
684 B
Docker
ARG BASE_IMG=alpine:3.19
|
|
|
|
FROM $BASE_IMG AS pidproxy
|
|
|
|
RUN apk --no-cache add alpine-sdk \
|
|
&& git clone https://github.com/ZentriaMC/pidproxy.git \
|
|
&& cd pidproxy \
|
|
&& git checkout 193e5080e3e9b733a59e25d8f7ec84aee374b9bb \
|
|
&& sed -i 's/-mtune=generic/-mtune=native/g' Makefile \
|
|
&& make \
|
|
&& mv pidproxy /usr/bin/pidproxy \
|
|
&& cd .. \
|
|
&& rm -rf pidproxy \
|
|
&& apk del alpine-sdk
|
|
|
|
|
|
FROM $BASE_IMG
|
|
|
|
COPY --from=pidproxy /usr/bin/pidproxy /usr/bin/pidproxy
|
|
RUN apk --no-cache add vsftpd tini shadow
|
|
|
|
COPY start_vsftpd.sh /bin/start_vsftpd.sh
|
|
COPY vsftpd.conf /etc/vsftpd/vsftpd.conf
|
|
|
|
EXPOSE 21 21000-21010
|
|
VOLUME /ftp/ftp
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--", "/bin/start_vsftpd.sh"]
|