Skip to content

Commit

Permalink
Merge pull request #4 from kruc/fix/docker-build-process
Browse files Browse the repository at this point in the history
Fix docker image build on golang v1.16 - set GO111MODULE to auto
  • Loading branch information
owenrumney authored Mar 2, 2021
2 parents 28d8223 + adea99b commit 2c4e09e
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,10 +1,10 @@
FROM golang:alpine AS builder

ENV SRCPATH $GOPATH/src/commenter
ENV GO111MODULE auto
COPY ./ $SRCPATH
RUN go install $SRCPATH/cmd/commenter


FROM alpine:3.12

RUN apk --no-cache --update add bash git \
Expand All @@ -21,4 +21,4 @@ RUN wget -O - -q "$(wget -q https://api.github.com/repos/tfsec/tfsec/releases/la

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 2c4e09e

Please sign in to comment.