File size: 794 Bytes
1ba3566
10ec935
45d2524
 
 
 
 
 
 
bd5e1ec
58a15a6
 
45d2524
 
8a9f846
9306b91
 
8a9f846
 
 
 
 
9306b91
 
5e278c1
8a9f846
0db8f16
 
 
b52708e
0db8f16
8a9f846
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"]