Skip to content

Commit

Permalink
fix: Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
ViRb3 committed Apr 20, 2022
1 parent cd2ade4 commit bd1f6f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ FROM golang:1.18.1-alpine AS builder
WORKDIR /src
COPY . .

RUN go mod download && \
RUN apk add --no-cache git && \
go mod download && \
CGO_ENABLED=0 go build -ldflags="-s -w" -o "wgcf"

FROM alpine:3.15.4
Expand Down

0 comments on commit bd1f6f1

Please sign in to comment.