diff --git a/.gitea/workflows/push.yml b/.gitea/workflows/push.yml index 97ded78..0b5f1d0 100644 --- a/.gitea/workflows/push.yml +++ b/.gitea/workflows/push.yml @@ -25,6 +25,7 @@ jobs: file: ./Dockerfile push: true tags: codeberg.org/aryak/mozhi:latest + platforms: linux/amd64, linux/arm64 build_artifact: runs-on: ubuntu-latest name: Build and publish artifacts diff --git a/Dockerfile b/Dockerfile index 85f41ed..5242d9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ COPY . . ENV GOPRIVATE=codeberg.org/aryak/libmozhi RUN go mod download RUN go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency -RUN GOOS=linux GOARCH=$TARGETARCH go build -o /src/mozhi +RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -o /src/mozhi FROM alpine:3.16 as bin