Enable docker cross compile for front & auth

This commit is contained in:
Zoe Roux 2025-12-06 01:28:03 +01:00
parent 6f07e51a07
commit 2deeaaf97e
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
FROM golang:1.25 AS build
FROM --platform=$BUILDPLATFORM golang:1.25 AS build
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /keibi
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=$TARGETARCH go build -o /keibi
FROM gcr.io/distroless/base-debian11
WORKDIR /app

View File

@ -1,4 +1,4 @@
FROM oven/bun AS builder
FROM --platform=$BUILDPLATFORM oven/bun AS builder
WORKDIR /app
# https://github.com/oven-sh/bun/issues/24538