Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ ARG GO_BASE=golang:1.23.3-alpine3.20
ARG RUNTIME_BASE=python:3.12-alpine
ARG GOPROXY=https://proxy.golang.org,direct

FROM ${GO_BASE} AS build
# The build stage runs on the builder's own platform and cross-compiles (CGO is off, GOARCH comes
# from TARGETARCH below). Without --platform the arm64 build ran the Go toolchain under QEMU, which
# took 20-30 minutes for the three images; the runtime stage only copies the binary.
FROM --platform=$BUILDPLATFORM ${GO_BASE} AS build
ARG GOPROXY
# TARGETARCH is set by buildx to the platform being built, so a multi-platform build
# compiles each image for its own arch. It was hardcoded to amd64, which put an amd64
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile.hagate
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ ARG GO_BASE=golang:1.23.3-alpine3.20
ARG RUNTIME_BASE=python:3.12-alpine
ARG GOPROXY=https://proxy.golang.org,direct

FROM ${GO_BASE} AS build
# The build stage runs on the builder's own platform and cross-compiles (CGO is off, GOARCH comes
# from TARGETARCH below). Without --platform the arm64 build ran the Go toolchain under QEMU, which
# took 20-30 minutes for the three images; the runtime stage only copies the binary.
FROM --platform=$BUILDPLATFORM ${GO_BASE} AS build
ARG GOPROXY
# TARGETARCH is set by buildx to the platform being built, so a multi-platform build
# compiles each image for its own arch. It was hardcoded to amd64, which put an amd64
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile.reload
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ ARG GO_BASE=golang:1.23.3-alpine3.20
ARG RUNTIME_BASE=python:3.12-alpine
ARG GOPROXY=https://proxy.golang.org,direct

FROM ${GO_BASE} AS build
# The build stage runs on the builder's own platform and cross-compiles (CGO is off, GOARCH comes
# from TARGETARCH below). Without --platform the arm64 build ran the Go toolchain under QEMU, which
# took 20-30 minutes for the three images; the runtime stage only copies the binary.
FROM --platform=$BUILDPLATFORM ${GO_BASE} AS build
ARG GOPROXY
# TARGETARCH is set by buildx to the platform being built, so a multi-platform build
# compiles each image for its own arch. It was hardcoded to amd64, which put an amd64
Expand Down
Loading