FROM alpine:latest | |
RUN apk update && apk add --no-cache curl | |
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories | |
RUN apk update && apk add --no-cache sing-box | |
RUN mkdir -p /etc/sing-box | |
RUN touch /etc/sing-box/config.json | |
RUN chmod 777 /etc/sing-box/config.json | |
#COPY main.py /etc/sing-box/main.py | |
CMD echo $CONFIG_TXT > /etc/sing-box/config.json && sing-box run -c /etc/sing-box/config.json |