Skip to content

Commit

Permalink
Move ARGS down in go template
Browse files Browse the repository at this point in the history
This appeared to stop buildx working.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Dec 4, 2020
1 parent 31d5210 commit b40bcf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions template/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.1.4 as watchdog
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.13-alpine3.12 as builder

ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETOS
ARG TARGETARCH

FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/classic-watchdog:0.1.4 as watchdog
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.13-alpine3.12 as builder

# Required to enable Go modules
RUN apk add --no-cache git

Expand Down

0 comments on commit b40bcf4

Please sign in to comment.