forked from x4gKing/3x-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 718 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (22 loc) · 718 Bytes
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
FROM alpine:3.19
RUN apk add --no-cache \
curl \
bash \
ca-certificates \
socat \
tzdata \
sqlite \
nginx \
gettext \
&& ln -sf /usr/share/zoneinfo/Asia/Tehran /etc/localtime
# دانلود و نصب 3x-ui
RUN curl -L https://github.com/mhsanaei/3x-ui/releases/download/v3.5.0/x-ui-linux-amd64.tar.gz -o /tmp/x-ui.tar.gz \
&& tar -xzf /tmp/x-ui.tar.gz -C /usr/local/ \
&& rm /tmp/x-ui.tar.gz \
&& chmod +x /usr/local/x-ui/x-ui
RUN mkdir -p /etc/x-ui /var/log/x-ui
COPY nginx.conf.template /etc/nginx/nginx.conf.template
COPY start.sh /start.sh
RUN chmod +x /start.sh
# Railway پورت رو از طریق متغیر $PORT تزریق میکند
CMD ["/start.sh"]