Download Dockerfile2 from ManiAz09/xray2: direct link, hf CLI and curl.
- Browser
- Download file 825 Bytes
-
https://huggingface.co/spaces/ManiAz09/xray2/resolve/main/Dockerfile2
- Command line
-
hf download hf://spaces/ManiAz09/xray2/Dockerfile2
-
curl -L -o Dockerfile2 https://huggingface.co/spaces/ManiAz09/xray2/resolve/main/Dockerfile2
825 Bytes
| FROM ghcr.io/mhsanaei/3x-ui:latest | |
| # Force 3x-ui to use /tmp for its database and logs so it works within Hugging Face's sandbox | |
| ENV XUI_DB_FOLDER = /tmp | |
| ENV XUI_LOG_FOLDER = /tmp | |
| ENV XUI_PANEL_PORT = 7860 | |
| ENV XUI_PASSWORD = admin | |
| ENV XUI_USERNAME = admin | |
| ENV XUI_WEB_BASE_PATH = false | |
| # ENV XUI_SSL_MODE = domain | |
| # ENV XUI_DOMAIN = maniaz09-xray.hf.space | |
| USER root | |
| # Use Alpine's package manager (apk) to install nginx | |
| RUN apk add --no-cache nginx | |
| # Copy configuration files into the container | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| COPY entrypoint.sh /entrypoint.sh | |
| # Ensure the entrypoint script and 3x-ui binaries are executable | |
| RUN chmod +x /entrypoint.sh && chmod -R 755 /app | |
| EXPOSE 7860 | |
| # EXPOSE 2083 | |
| # EXPOSE 2053 | |
| # EXPOSE 8443 | |
| EXPOSE 443 | |
| # EXPOSE 80 | |
| ENTRYPOINT ["/entrypoint.sh"] |