Skip to content

Commit

Permalink
Fix docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Oct 26, 2020
1 parent 093d764 commit 91e7526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.15-alpine AS builder

RUN apk add --no-cache git build-base
RUN apk add --no-cache git

WORKDIR $GOPATH/src/github.com/Vilsol/yeet/

Expand All @@ -12,7 +12,7 @@ RUN go mod download

COPY . .

RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /yeet main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /yeet main.go

FROM scratch

Expand Down

0 comments on commit 91e7526

Please sign in to comment.