mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/docker-easyconnect/docker-easyconnect.git
synced 2026-09-20 08:03:33 +08:00
This port is used by EasyConnect for web api, called by EasyConnect GUI and/or web page of VPN server. Close #143
36 lines
1.2 KiB
Docker
36 lines
1.2 KiB
Docker
FROM debian:buster-slim
|
|
|
|
ARG BUILD_ENV=local
|
|
|
|
RUN if [ "${BUILD_ENV}" = "local" ]; then sed -i s/deb.debian.org/mirrors.aliyun.com/ /etc/apt/sources.list; fi &&\
|
|
apt-get update && \
|
|
apt-get install -y --no-install-recommends --no-install-suggests \
|
|
libgtk2.0-0 libx11-xcb1 libxtst6 libnss3 libasound2 libdbus-glib-1-2 iptables \
|
|
dante-server psmisc libxaw7 xclip busybox libssl-dev iproute2 tinyproxy-bin socat \
|
|
fonts-wqy-microhei
|
|
|
|
RUN groupadd -r socks && useradd -r -g socks socks
|
|
|
|
RUN cd tmp && apt-get update && apt-get download x11-utils && dpkg -x x11-utils_*.deb x11-utils &&\
|
|
mkdir -p /usr/local/bin && cp x11-utils/usr/bin/xmessage /usr/local/bin && rm -r x11-utils*
|
|
|
|
ARG EC_URL
|
|
|
|
RUN cd tmp && \
|
|
busybox wget "${EC_URL}" -O EasyConnect.deb &&\
|
|
dpkg -i EasyConnect.deb && rm EasyConnect.deb
|
|
|
|
COPY ./docker-root /
|
|
|
|
RUN rm -f /usr/share/sangfor/EasyConnect/resources/conf/easy_connect.json &&\
|
|
mv /usr/share/sangfor/EasyConnect/resources/conf/ /usr/share/sangfor/EasyConnect/resources/conf_backup
|
|
|
|
COPY --from=fake-hwaddr fake-hwaddr/fake-hwaddr.so /usr/local/lib/fake-hwaddr.so
|
|
|
|
#ENV PASSWORD="" LOOP=""
|
|
#ENV DISPLAY
|
|
|
|
VOLUME /root/ /usr/share/sangfor/EasyConnect/resources/logs/
|
|
|
|
CMD TYPE=x11 start.sh
|