Skip to content

Commit

Permalink
fix(deviceconfig): enable multiplatform build
Browse files Browse the repository at this point in the history
The required TARGETOS and TARGETARCH variables were missing from the
Dockerfile.

Ticket: QA-673
Changelog: Fix multiplatform docker build

Signed-off-by: Roberto Giovanardi <roberto.giovanardi@northern.tech>
  • Loading branch information
oldgiova committed Oct 17, 2024
1 parent c1c9764 commit fbbe646
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/services/deviceconfig/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM --platform=$BUILDPLATFORM golang:1.23.1 AS builder
ARG TARGETOS
ARG TARGETARCH
ARG LDFLAGS="-s -w"
ARG BUILDFLAGS="-trimpath"
WORKDIR /build
Expand Down

0 comments on commit fbbe646

Please sign in to comment.