Skip to content

Commit

Permalink
CGO has to be disabled for alpine image
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsony94 committed Nov 14, 2021
1 parent 0873ee9 commit df5abe0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM golang:1.16 AS build
WORKDIR /go/src/github.com/org/repo
COPY . .

ENV CGO_ENABLED=0
RUN go build -o server .

FROM build AS development
Expand Down

0 comments on commit df5abe0

Please sign in to comment.