Skip to content

Commit

Permalink
fix: RUN CGO_ENABLED=0
Browse files Browse the repository at this point in the history
  • Loading branch information
gatsbyz committed Jan 23, 2024
1 parent 19f5736 commit 1e1f835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /go/src/app
COPY . .

# Build your Go app using the 'build' target in your Makefile
RUN make build
RUN CGO_ENABLED=0 make build

# Use a smaller base image to create a minimal final image
FROM scratch
Expand All @@ -20,4 +20,4 @@ WORKDIR /root/
COPY --from=builder /go/src/app/out/polycli .

# Command to run the binary
CMD ["./polycli"]
CMD ["./polycli"]\

0 comments on commit 1e1f835

Please sign in to comment.