switch to debian base-image (no more static linking)

This commit is contained in:
Mike Schwörer 2022-11-20 22:18:48 +01:00
parent 0cc6e27267
commit f17ddb4ace
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 2 additions and 5 deletions

View File

@ -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

View File

@ -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