Skip to content

Commit

Permalink
Fix ARM64 docker image
Browse files Browse the repository at this point in the history
The TARGETOS and TARGETARCH arguments are special and can't have a
default assigned and also get values from BuildKit.
  • Loading branch information
kvij committed Nov 18, 2023
1 parent e760251 commit 788dfd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ ARG GO_VERSION=1
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:${GO_VERSION}-bookworm AS build

ARG VERSION=local
ARG TARGETOS=linux
ARG TARGETARCH=amd64
ARG TARGETOS
ARG TARGETARCH

COPY . /app
WORKDIR /app
Expand Down

0 comments on commit 788dfd5

Please sign in to comment.