Skip to content

Commit

Permalink
Add ENV CGO_ENABLE=0 and alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
gberche-orange committed Oct 19, 2024
1 parent 23aa48d commit c31faf4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ WORKDIR /app

COPY go.mod Makefile ./
COPY ./cmd ./cmd

#See https://www.reddit.com/r/golang/comments/15o9trk/binsh_manager_not_found/
#See https://www.reddit.com/r/golang/comments/pi97sp/what_is_the_consequence_of_using_cgo_enabled0/
ENV CGO_ENABLE=0
RUN make build
RUN /app/build/main -h || echo ignore error during build container

# ---

Expand Down

0 comments on commit c31faf4

Please sign in to comment.