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