Fix docker image not compatible with non static compilation
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Melora Hugues 2023-10-28 15:18:01 +02:00
parent 2e34244fcf
commit 137789e2a1

View file

@ -6,7 +6,9 @@ COPY polyculeconnect ./
RUN make build RUN make build
# Replace with from scratch later on # 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 WORKDIR /root
COPY --from=builder go/src/git.faercol.me/polyculeconnect/build/polyculeconnect ./ COPY --from=builder go/src/git.faercol.me/polyculeconnect/build/polyculeconnect ./
ADD polyculeconnect/robots.txt /root/ ADD polyculeconnect/robots.txt /root/
@ -16,4 +18,4 @@ ADD polyculeconnect/templates /root/templates/
VOLUME [ "/config" ] VOLUME [ "/config" ]
ENTRYPOINT [ "./polyculeconnect" ] ENTRYPOINT [ "./polyculeconnect" ]
CMD [ "-config", "/config/config.json" ] CMD [ "serve", "--config", "/config/config.json" ]