xray / Dockerfile2
ManiAz09's picture
Rename Dockerfile to Dockerfile2
52260e7 verified
Raw
History Blame Contribute Delete
794 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"]