From 7b70488565175d96f2743212efaa3869d61d0dcf Mon Sep 17 00:00:00 2001 From: Antoine VIVIES Date: Wed, 27 Nov 2019 19:27:30 +0800 Subject: [PATCH] FIX Dockerfile with go mod --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 05cec3961..65ff15426 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.10.3-alpine AS build +FROM golang:1.13.1-alpine as build RUN apk add --update \ git \ @@ -8,9 +8,11 @@ RUN wget -O /usr/local/bin/dep https://github.com/golang/dep/releases/download/v WORKDIR /go/src/github.com/kgretzky/evilginx2 -COPY Gopkg.toml Gopkg.lock ./ +COPY go.mod go.sum ./ -RUN dep ensure -vendor-only +ENV GO111MODULE on + +RUN go mod download COPY . /go/src/github.com/kgretzky/evilginx2