Download mod.
This commit is contained in:
parent
fe71fe8133
commit
fe1908d154
1 changed files with 4 additions and 2 deletions
|
@ -3,9 +3,11 @@ FROM golang:1.12 AS compiler
|
||||||
WORKDIR $GOPATH/src/github.com/msoedov/hacker-slides
|
WORKDIR $GOPATH/src/github.com/msoedov/hacker-slides
|
||||||
|
|
||||||
ENV GO111MODULE on
|
ENV GO111MODULE on
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN GOOS=linux CGO_ENABLE=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o app *.go
|
RUN GOOS=linux CGO_ENABLE=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /bin/app *.go
|
||||||
RUN cp app /bin/app
|
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.8
|
FROM alpine:3.8
|
||||||
|
|
Loading…
Reference in a new issue