Skip to content

Commit

Permalink
fix(bug): Statically compile binary
Browse files Browse the repository at this point in the history
  • Loading branch information
kwent committed Nov 3, 2023
1 parent c7638a1 commit 364c8dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ RUN go get -v -t -d all
RUN make build

# hadolint ignore=DL3006,DL3007
FROM golang:alpine
FROM alpine:latest
COPY --from=builder /usr/src/app/bin/rootly /usr/local/bin/rootly
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build:
go build -tags netgo -a -v -o ./bin/rootly ./cmd/rootly/
CGO_ENABLED=0 go build -tags netgo -a -v -o ./bin/rootly ./cmd/rootly/

docker-build:
docker build -t rootlyhub/cli .
Expand Down

0 comments on commit 364c8dc

Please sign in to comment.