👷 Added Docker CI

This commit is contained in:
itspooya 2023-05-08 01:59:07 +03:30 committed by Ho3ein
parent 77692e0298
commit c727b81772

View File

@ -1,8 +1,7 @@
# Use the official Golang image as the base image # Use the official Golang image as the base image
FROM golang:1.20 as builder
ARG TARGETARCH ARG TARGETARCH
ARG TARGETOS ARG TARGETOS
FROM golang:1.20 as builder
# Set up the working directory # Set up the working directory
WORKDIR /app WORKDIR /app
@ -49,6 +48,7 @@ RUN wget https://github.com/mhsanaei/Xray-core/releases/latest/download/Xray-lin
WORKDIR /app WORKDIR /app
RUN chmod +x /app/x-ui/x-ui.sh RUN chmod +x /app/x-ui/x-ui.sh
RUN apt install tzdata ca-certificates
# Set the entrypoint # Set the entrypoint
ENTRYPOINT ["/app/x-ui/x-ui.sh"] ENTRYPOINT ["/app/x-ui/xui-release"]