Skip to content

Commit

Permalink
can't use scratch, doesn't have libgcc...
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Mar 10, 2024
1 parent 8df2473 commit 40984f5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile.index
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ WORKDIR /tmp/build

RUN apt-get update && apt-get -y install ca-certificates
RUN pixi run -e build build-server
RUN ls -lah /tmp/build/target/release/

# 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 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

Expand Down

0 comments on commit 40984f5

Please sign in to comment.