Skip to content

Commit b79bfe8

Browse files
author
Min Min
committed
changes to dockerfile to make dex build faster
Signed-off-by: Min Min <[email protected]>
1 parent 744c38c commit b79bfe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ FROM golang:1.16.6-alpine3.13 AS builder
22

33
WORKDIR /usr/local/src/dex
44

5+
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
56
RUN apk add --no-cache --update alpine-sdk
67

78
ARG TARGETOS
89
ARG TARGETARCH
910
ARG TARGETVARIANT=""
1011

1112
ENV GOOS=${TARGETOS} GOARCH=${TARGETARCH} GOARM=${TARGETVARIANT}
12-
13-
ARG GOPROXY
13+
ENV GOPROXY=https://goproxy.cn,direct
1414

1515
COPY go.mod go.sum ./
1616
COPY api/v2/go.mod api/v2/go.sum ./api/v2/

0 commit comments

Comments
 (0)