代码拉取完成,页面将自动刷新
FROM debian:stable
WORKDIR /opt
EXPOSE 8080
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
RUN apt-get update && apt-get install -y curl bzip2 jq git wget openvpn iptables openssl \
wget ca-certificates iproute2 sqlite3 procps
COPY ./build/assets/start.sh /opt/start.sh
COPY ./build/assets/vars.template /opt/scripts/vars.template
COPY ./build/assets/openvpn-install-v2.sh /opt/scripts/openvpn-install-v2.sh
COPY ./build/assets/install_pkg.sh /opt/scripts/install_pkg.sh
COPY ./build/assets/restart.sh /opt/scripts/restart.sh
COPY ./build/assets/rmcert.sh /opt/scripts/rmcert.sh
COPY ./build/assets/renew.sh /opt/scripts/renew.sh
RUN /opt/scripts/install_pkg.sh
RUN apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
COPY ./dist/openvpn-ui-${TARGETOS}-${TARGETARCH}${TARGETVARIANT}/openvpn-ui.tar.gz /opt/openvpn-gui/
RUN tar -zxf /opt/openvpn-gui/openvpn-ui.tar.gz --directory /opt/openvpn-gui/
RUN rm -f /opt/openvpn-gui/openvpn-ui.tar.gz /opt/openvpn-gui/data.db
COPY ./build/assets/app.conf /opt/openvpn-gui/conf/app.conf
# Advise to open necassary ports
EXPOSE 1194/udp 8080/tcp
CMD /opt/start.sh
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。