forked from boyska/feedpanel
fix module support
This commit is contained in:
parent
5abac50fca
commit
578089d225
1 changed files with 2 additions and 1 deletions
|
@ -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/
|
||||||
|
|
Loading…
Reference in a new issue