Skip to content

Commit

Permalink
Dockerfile build cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
loeffert committed Mar 30, 2020
1 parent 422fcf9 commit f75f3a0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ FROM golang:1.14-alpine AS build-env

WORKDIR /src

COPY ./go.mod ./go.sum ./
RUN go mod download && go mod vendor

# Import the code from the context.
COPY ./ ./

RUN GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -o /contentserver
RUN go mod download && go mod vendor
RUN GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -trimpath -o /contentserver

##############################
###### STAGE: PACKAGE ######
Expand Down

0 comments on commit f75f3a0

Please sign in to comment.