Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
Avoid cgo for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
zachfi committed Sep 3, 2023
1 parent fcc788e commit 63e3280
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,4 +1,4 @@
FROM alpine:3.17 as certs
FROM alpine:3.18 as certs
COPY ./bin/linux/znet /bin/znet
RUN chmod 0700 /bin/znet
RUN mkdir /var/znet
Expand Down
2 changes: 1 addition & 1 deletion build/compile.mk
Expand Up @@ -63,7 +63,7 @@ compile-only: deps-only
@for b in $(BINS); do \
echo "=== $(PROJECT_NAME) === [ compile ]: $(BUILD_DIR)$(GOOS)/$$b"; \
BUILD_FILES=`find $(SRCDIR)/cmd/$$b -type f -name "*.go"` ; \
GOOS=$(GOOS) $(GO) build -ldflags=$(LDFLAGS) -o $(BUILD_DIR)/$(GOOS)/$$b $$BUILD_FILES ; \
CGO_ENABLED=0 GOOS=$(GOOS) $(GO) build -ldflags=$(LDFLAGS) -o $(BUILD_DIR)/$(GOOS)/$$b $$BUILD_FILES ; \
done

# Override GOOS for these specific targets
Expand Down

0 comments on commit 63e3280

Please sign in to comment.