mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-13 21:13:09 +00:00
Add Docker (#58)
This commit is contained in:
@@ -5,10 +5,13 @@ RUN go build main.go
|
||||
|
||||
|
||||
FROM debian:11-slim
|
||||
LABEL org.opencontainers.image.authors="hossin.asaadi77@gmail.com"
|
||||
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" ]
|
||||
|
||||
Reference in New Issue
Block a user