Skip to content

Commit

Permalink
tested two potential performance improvements to the servers dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jun 18, 2024
1 parent 6ff7124 commit c278197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ FROM rust:1.79-alpine AS compiler
# - musl-dev is needed for musl to compile the binary
# - openssl is needed for https://github.com/meilisearch/meilisearch-rust to compile the binary, as their http-libraryy won't support tls until v2.0 https://github.com/sagebind/isahc/issues/199
# I somehow could not get openssl to cooperate => we are contibuing with libpq-dev
RUN apk add -q --update-cache --no-cache musl-dev libpq-dev
RUN apk add -q --update-cache --no-cache musl-dev libpq-dev mold

WORKDIR /compiler
ENV USER=root
ENV RUSTFLAGS="-C target-feature=-crt-static"
ENV RUSTFLAGS="-C target-feature=-crt-static -C link-arg=-fuse-ld=mold"

# (probably cached) first run of the image build => only dependencies
COPY ./Cargo.* ./
Expand Down

0 comments on commit c278197

Please sign in to comment.