Skip to content

Commit

Permalink
fix CGO_ENABLE again
Browse files Browse the repository at this point in the history
  • Loading branch information
shizunge committed Jun 26, 2023
1 parent f1d4f43 commit b362647
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ FROM golang AS build
RUN mkdir /endlessh
ADD . /endlessh
WORKDIR /endlessh
RUN export CGO_ENABLED=0
RUN go mod tidy
RUN go build -o endlessh .
RUN CGO_ENABLED=0 go build -o endlessh .

FROM gcr.io/distroless/base

Expand Down

0 comments on commit b362647

Please sign in to comment.