From 9d2d56a09bec3656d2b84a6daad5a99f2d2a263f Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Thu, 5 Mar 2026 14:07:21 +0100 Subject: [PATCH] Docker: add a step to reduce image size and use entrypoint --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0d66168..bf7c527 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,12 @@ FROM node:lts AS buildfront COPY front . RUN npm install && npm run build -FROM golang:1.25 +FROM golang:1.25 AS build WORKDIR /src COPY . . COPY --from=buildfront ./dist front/dist -RUN go build -tags=embed -CMD ["./bibliomane", "-D", "-C", "-n"] +RUN go build -tags=embed -o /bin/bibliomane + +FROM debian:bookworm +COPY --from=build /bin/bibliomane /bin/bibliomane +ENTRYPOINT ["/bin/bibliomane"]