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 python3 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 ["python3","/etc/sing-box/main.py"]