mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-20 05:52:24 +00:00
👷 Added Docker CI
This commit is contained in:
parent
c727b81772
commit
20a55c086e
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,8 @@
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
ARG TARGETOS
|
ARG TARGETOS
|
||||||
FROM golang:1.20 as builder
|
FROM golang:1.20 as builder
|
||||||
|
ARG TARGETARCH
|
||||||
|
ARG TARGETOS
|
||||||
# Set up the working directory
|
# Set up the working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
@ -20,7 +21,7 @@ RUN CGO_ENABLED=1 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o xui-release-
|
||||||
FROM ubuntu:20.04
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
ARG TARGETOS
|
||||||
# Set up the working directory
|
# Set up the working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue