Skip to content

Commit

Permalink
Tweak build flags for sqlite deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ericvolp12 committed Nov 7, 2023
1 parent a2e20c7 commit 2a7a254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ stop-scylla:
.PHONY: build-literiver
build-literiver:
@echo "==> Building literiver"
go build -extldflags '-static'" -tags osusergo,netgo,sqlite_omit_load_extension ./cmd/literiver
go build -ldflags "-extldflags '-static'" -tags osusergo,netgo,sqlite_omit_load_extension ./cmd/literiver

.PHONY: build-literiver-image
build-literiver-image: build-literiver
build-literiver-image:
@echo "==> Building literiver image"
docker build -t literiver -f cmd/literiver/Dockerfile .
2 changes: 1 addition & 1 deletion cmd/literiver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /dockerbuild
# timezone data for alpine builds
ENV GOEXPERIMENT=loopvar
RUN GIT_VERSION=$(git describe --tags --long --always) && \
go build -tags timetzdata -o /literiver ./cmd/literiver
go build -ldflags "-extldflags '-static'" -tags osusergo,netgo,sqlite_omit_load_extension,timetzdata -o /literiver ./cmd/literiver

### Run stage
FROM alpine:3.18
Expand Down

0 comments on commit 2a7a254

Please sign in to comment.