Skip to content
This repository was archived by the owner on Sep 23, 2021. It is now read-only.

Commit fe1908d

Browse files
committed
Download mod.
1 parent fe71fe8 commit fe1908d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ FROM golang:1.12 AS compiler
33
WORKDIR $GOPATH/src/github.com/msoedov/hacker-slides
44

55
ENV GO111MODULE on
6+
RUN go mod download
7+
68
COPY . .
7-
RUN GOOS=linux CGO_ENABLE=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o app *.go
8-
RUN cp app /bin/app
9+
RUN GOOS=linux CGO_ENABLE=0 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o /bin/app *.go
10+
911

1012

1113
FROM alpine:3.8

0 commit comments

Comments
 (0)