Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
NortonBen committed Oct 23, 2022
1 parent bacf4cb commit 12c6047
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
FROM golang:1.19-alpine as builder

ENV GO111MODULE=on
ENV GOFLAGS=" -ldflags '-w'"
ENV GOPROXY=direct
ENV GOSUMDB=off

COPY . .
RUN go get

RUN go mod download
RUN GOOS=linux GOARCH=amd64 go build

FROM alpine:3.14 as run
Expand Down

0 comments on commit 12c6047

Please sign in to comment.