diff --git a/Dockerfile b/Dockerfile index 9b36a7f..a2585dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ -FROM golang:1.8 +FROM golang:1.15 MAINTAINER mlabouardy WORKDIR /go/src/github.com/mlabouardy/swaggymnia/ COPY . . -RUN go get -v -RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o swaggymnia . + +RUN go mod init +RUN GO111MODULE=on go get -v +RUN CGO_ENABLED=0 GOOS=linux go build -a -o swaggymnia . ENTRYPOINT ["./swaggymnia"]