From 7ff1bf70899ef2dac2a280e97c049ac1a32b9fec Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Sat, 9 Mar 2024 18:00:20 -0800 Subject: [PATCH] can't use scratch, doesn't have libgcc... --- Dockerfile.index | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile.index b/Dockerfile.index index 23f581a..7ddf971 100644 --- a/Dockerfile.index +++ b/Dockerfile.index @@ -3,14 +3,17 @@ COPY . /tmp/build WORKDIR /tmp/build +# Need this to avoid SSL errors. Can this be done only with pixi? RUN apt-get update && apt-get -y install ca-certificates + +# Build branchwater-server RUN pixi run -e build build-server -# Final image is based on scratch. We only copy the server binary, -# no need for pixi anymore -FROM scratch +# Final image is based on debian, because we need a libgcc. +# We only copy the server binary, no need for pixi anymore +FROM docker.io/debian:bookworm-slim -COPY --from=build /tmp/build/target/release/branchwater-server /app/bin/ +COPY --from=build /tmp/build/target/release/branchwater-server /app/bin/branchwater-server WORKDIR /data