forked from dmifly/XX-Net-Docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (20 loc) · 979 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.10-alpine
ENV _XXNET_VERSION 4.7.6
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1 TZ=Asia/Shanghai
WORKDIR /root/XX-Net-"$_XXNET_VERSION"
ADD https://codeload.github.com/XX-net/XX-Net/zip/"$_XXNET_VERSION" /root
RUN unzip -q -d /root /root/"$_XXNET_VERSION" \
&& apk --no-cache add gcc musl-dev libffi-dev openssl-dev openssl python3-dev py3-pip \
&& pip install pyopenssl \
# && apk delete gcc musl-dev libffi-dev openssl-dev openssl python3-dev py3-pip \
&& rm /root/"$_XXNET_VERSION" \
&& rm -rf /var/cache/apk/* \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/ \
VOLUME /root/XX-Net-"$_XXNET_VERSION"/data/gae_proxy/
COPY config.json data/gae_proxy/config.json
VOLUME /root/XX-Net-"$_XXNET_VERSION"/SwitchyOmega/
COPY SwitchyOmega.crx SwitchyOmega/SwitchyOmega.crx
EXPOSE 8087 8085 8086 1080
CMD ["/bin/sh","-c", "./start -allow_remote"]