👷 Added Docker CI

This commit is contained in:
itspooya 2023-05-08 03:56:09 +03:30 committed by Ho3ein
parent 50c296eb28
commit a25137f215

View file

@ -13,7 +13,7 @@ RUN echo "GOOS=$TARGETOS GOARCH=$TARGETARCH" > /app/.env
COPY . .
# Build the X-ui binary
RUN CGO_ENABLED=1 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o xui-release-$TARGETARCH -v main.go
RUN CGO_ENABLED=۰ GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o xui-release-$TARGETARCH -v main.go
# Start a new stage using the base image
FROM ubuntu:20.04