Skip to content

Commit 890a7b2

Browse files
committed
Added goproxy to dockerfiles
1 parent 36b5f48 commit 890a7b2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

PetAdoptions/payforadoption-go/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM golang:1.20 as builder
22
WORKDIR /go/src/app
33
COPY . .
4+
ENV GOPROXY=https://goproxy.io,direct
45
RUN go get .
56
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
67

PetAdoptions/petlistadoptions-go/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM golang:1.20 as builder
22
WORKDIR /go/src/app
33
COPY . .
4+
ENV GOPROXY=https://goproxy.io,direct
45
RUN go get .
56
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
67

0 commit comments

Comments
 (0)