Create Dockerfile
Browse files- Dockerfile +9 -0
Dockerfile
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM alpine:latest
|
2 |
+
RUN apk update && apk add --no-cache curl
|
3 |
+
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
4 |
+
RUN apk update && apk add --no-cache sing-box
|
5 |
+
RUN mkdir -p /etc/sing-box
|
6 |
+
RUN touch /etc/sing-box/config.json
|
7 |
+
RUN chmod 777 /etc/sing-box/config.json
|
8 |
+
#COPY main.py /etc/sing-box/main.py
|
9 |
+
CMD echo $CONFIG_TXT > /etc/sing-box/config.json && sing-box run -c /etc/sing-box/config.json
|