Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

fix go mod 1.16 issue #49

Merged
merged 1 commit into from
Aug 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN go mod download

COPY . .

RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/api
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./bin/api -mod=mod

# final stage
FROM alpine:3.13
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile.tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM golang:1.16

ENV GO111MODULE=on
ENV GOFLAGS=-mod=mod

WORKDIR /app

Expand All @@ -12,6 +13,4 @@ COPY go.sum .

RUN go mod download

RUN go mod tidy

COPY . .