File size: 825 Bytes
f475d15 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 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"] |