1
0
Fork 0
forked from boyska/feedpanel

fix module support

This commit is contained in:
baz 2018-10-01 12:58:56 +02:00
parent 5abac50fca
commit 578089d225

View file

@ -2,7 +2,8 @@ FROM golang:1.11-alpine as builder
RUN apk --no-cache add git gcc musl-dev RUN apk --no-cache add git gcc musl-dev
WORKDIR /go/src/git.lattuga.net/boyska/feedpanel/ WORKDIR /go/src/git.lattuga.net/boyska/feedpanel/
COPY ./ /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 FROM busybox
WORKDIR /usr/bin/ WORKDIR /usr/bin/