Spaces:
Paused

best / Dockerfile
Erantaylor's picture
Create Dockerfile
ede5281 verified
Raw History Blame Contribute Delete
348 Bytes
FROM alpine:latest
WORKDIR /app
RUN apk add --no-cache wget unzip
RUN wget -O xray.zip https://github.com/XTLS/Xray-core/releases/latest/download/Xray-linux-64.zip
RUN unzip xray.zip && rm xray.zip
RUN chmod +x xray
COPY config.json /app/config.json
RUN chown -R 1000:1000 /app
USER 1000
EXPOSE 7860
CMD ["./xray", "run", "-c", "config.json"]