From fadef50bc22d872052847301d3ac884c1cd2d9c1 Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Sat, 28 Oct 2023 15:18:01 +0200 Subject: [PATCH] Fix docker image not compatible with non static compilation --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cb9aa2a..c128031 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,9 @@ COPY polyculeconnect ./ RUN make build # Replace with from scratch later on -FROM --platform=$TARGETPLATFORM alpine:latest +FROM --platform=$TARGETPLATFORM debian:latest +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get -qq install ca-certificates WORKDIR /root COPY --from=builder go/src/git.faercol.me/polyculeconnect/build/polyculeconnect ./ ADD polyculeconnect/robots.txt /root/ @@ -16,4 +18,4 @@ ADD polyculeconnect/templates /root/templates/ VOLUME [ "/config" ] ENTRYPOINT [ "./polyculeconnect" ] -CMD [ "-config", "/config/config.json" ] +CMD [ "serve", "--config", "/config/config.json" ]