Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
@@ -1,3 +1,9 @@
|
|
1 |
-
FROM
|
2 |
USER root
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM alpine
|
2 |
USER root
|
3 |
+
COPY config.json /etc/xray/config.json
|
4 |
+
RUN apk update \
|
5 |
+
&& apk add --no-cache ca-certificates busybox \
|
6 |
+
&& busybox wget https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip \
|
7 |
+
&& busybox unzip Xray-linux-64.zip \
|
8 |
+
&& busybox mv xray /usr/bin/xray
|
9 |
+
ENTRYPOINT ["xray", "-c", "/etc/xray/config.json"]
|