Skip to content

Commit

Permalink
Fixed docker file to address build failures, changed the golang versi…
Browse files Browse the repository at this point in the history
…on removed Go Modules off command and performing go mod download
  • Loading branch information
gkeesh7 committed Aug 11, 2024
1 parent fc8c295 commit 5b011cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM golang:1.16-alpine
FROM golang:1.17-alpine

RUN apk update
RUN apk add git
Expand All @@ -10,7 +10,7 @@ ENV PKG_PATH=$GOPATH/src/$PKG_NAME
WORKDIR $PKG_PATH

COPY . $PKG_PATH
RUN go env -w GO111MODULE=off
RUN go mod download
RUN go build main.go

WORKDIR $PKG_PATH
Expand Down

0 comments on commit 5b011cc

Please sign in to comment.