From f17ddb4acebc61ccb71152822d8b59fd48ad9c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sun, 20 Nov 2022 22:18:48 +0100 Subject: [PATCH] switch to debian base-image (no more static linking) --- server/Dockerfile | 5 +---- server/Makefile | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/server/Dockerfile b/server/Dockerfile index 5a68e5f..bf2e879 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -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 diff --git a/server/Makefile b/server/Makefile index f94da55..9962ec1 100644 --- a/server/Makefile +++ b/server/Makefile @@ -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