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 f3dc54d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile.index
Original file line number Diff line number Diff line change
Expand Up @@ -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 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 f3dc54d

Please sign in to comment.