forked from mystiq/dex
chore(docker): reorder instructions in build image
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
parent
a33669e3ec
commit
d2d0d4a1ea
1 changed files with 5 additions and 7 deletions
12
Dockerfile
12
Dockerfile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue