This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
forked from vaxilu/x-ui
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bb41997
commit abc67e8
Showing
4 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,13 @@ RUN go build main.go | |
|
||
|
||
FROM debian:11-slim | ||
LABEL org.opencontainers.image.authors="[email protected]" | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN apt-get update && apt-get install -y --no-install-recommends -y ca-certificates \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
ENV TZ=Asia/Shanghai | ||
WORKDIR /root | ||
COPY --from=builder /root/main /root/x-ui | ||
COPY bin/. /root/bin/. | ||
COPY ./bin/. /root/bin/. | ||
VOLUME [ "/etc/x-ui" ] | ||
CMD [ "./x-ui" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: '3.9' | ||
services: | ||
xui: | ||
image: hossinasaadi/x-ui | ||
container_name: x-ui | ||
volumes: | ||
- $PWD/db/:/etc/x-ui/ | ||
- $PWD/cert/:/root/cert/ | ||
restart: unless-stopped | ||
network_mode: host |