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
12
Dockerfile
12
Dockerfile
@ -1,16 +1,14 @@
|
|||||||
FROM golang:1.15.7-alpine3.13 AS builder
|
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 TARGETOS
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
ARG TARGETVARIANT=""
|
ARG TARGETVARIANT=""
|
||||||
|
|
||||||
WORKDIR /usr/local/src/dex
|
ENV GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOARM=${TARGETVARIANT}
|
||||||
|
|
||||||
ENV GOOS=${TARGETOS} \
|
|
||||||
GOARCH=${TARGETARCH} \
|
|
||||||
GOARM=${TARGETVARIANT}
|
|
||||||
|
|
||||||
RUN apk add --no-cache --update alpine-sdk
|
|
||||||
|
|
||||||
ARG GOPROXY
|
ARG GOPROXY
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user