mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-17 04:34:40 +03:00
👷 Added Docker CI
This commit is contained in:
@@ -16,7 +16,7 @@ RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o xui-release-$TARGETARCH -v mai
|
|||||||
FROM ubuntu:20.04
|
FROM ubuntu:20.04
|
||||||
# Set up the working directory
|
# Set up the working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
ARG TARGETOS TARGETARCH
|
||||||
# Copy the X-ui binary and required files from the builder stage
|
# Copy the X-ui binary and required files from the builder stage
|
||||||
COPY --from=builder /app/xui-release-$TARGETARCH /app/x-ui/xui-release
|
COPY --from=builder /app/xui-release-$TARGETARCH /app/x-ui/xui-release
|
||||||
COPY x-ui.service /app/x-ui/x-ui.service
|
COPY x-ui.service /app/x-ui/x-ui.service
|
||||||
|
|||||||
Reference in New Issue
Block a user