switch to debian base-image (no more static linking)
This commit is contained in:
parent
0cc6e27267
commit
f17ddb4ace
@ -1,7 +1,4 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk update
|
||||
RUN apk add --no-cache libc6-compat tzdata ca-certificates sqlite
|
||||
FROM debian:bookworm
|
||||
|
||||
COPY _build/scn_backend /app/scnserver
|
||||
COPY DOCKER_GIT_INFO /app/DOCKER_GIT_INFO
|
||||
|
@ -7,7 +7,7 @@ HASH=$(shell git rev-parse HEAD)
|
||||
|
||||
build:
|
||||
rm -f ./_build/scn_backend
|
||||
CGO_ENABLED=1 go build -v -ldflags "-linkmode external -extldflags -static" -o _build/scn_backend ./cmd/scnserver
|
||||
CGO_ENABLED=1 go build -v -o _build/scn_backend -tags timetzdata ./cmd/scnserver
|
||||
|
||||
run: build
|
||||
mkdir -p .run-data
|
||||
|
Loading…
Reference in New Issue
Block a user