From 578089d2259592cd72e46c77abe1e5607f3a8b53 Mon Sep 17 00:00:00 2001 From: baz Date: Mon, 1 Oct 2018 12:58:56 +0200 Subject: [PATCH] fix module support --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 607a183..51c6044 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM golang:1.11-alpine as builder RUN apk --no-cache add git gcc musl-dev WORKDIR /go/src/git.lattuga.net/boyska/feedpanel/ COPY ./ /go/src/git.lattuga.net/boyska/feedpanel/ -RUN CGO_ENABLED=0 GOOS=linux go install ./... +ENV GO111MODULES=on +RUN go get ./... && CGO_ENABLED=0 GOOS=linux go install ./... FROM busybox WORKDIR /usr/bin/