chore(docker): reorder instructions in build image

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar 2021-01-23 19:13:13 +01:00
parent a33669e3ec
commit d2d0d4a1ea
No known key found for this signature in database
GPG Key ID: 34CC109EB5ED1C2A

View File

@ -1,16 +1,14 @@
FROM golang:1.15.7-alpine3.13 AS builder
WORKDIR /usr/local/src/dex
RUN apk add --no-cache --update alpine-sdk
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT=""
WORKDIR /usr/local/src/dex
ENV GOOS=${TARGETOS} \
GOARCH=${TARGETARCH} \
GOARM=${TARGETVARIANT}
RUN apk add --no-cache --update alpine-sdk
ENV GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOARM=${TARGETVARIANT}
ARG GOPROXY