mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-06-01 12:22:23 +00:00
add support for arm64 docker builds using Buildx+QEMU (#152)
Co-authored-by: flexxxxer <bahx4pc@gmail.com>
This commit is contained in:
parent
455b9c1ec6
commit
9babb62afc
2 changed files with 14 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.22.1-alpine3.19 as build
|
||||
FROM golang:1.22.1-alpine3.19 AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
@ -9,7 +9,10 @@ RUN go mod download
|
|||
|
||||
COPY . .
|
||||
|
||||
ENV CGO_ENABLED=0
|
||||
# Architecture and OS are set dynamically (by BuildKit)
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
|
||||
|
||||
RUN go build -o anonymousoverflow && go build -o healthcheck ./src/healthcheck
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue