diff --git a/Dockerfile b/Dockerfile index 6f7d2c32a5..f83f3b1c21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,15 @@ COPY --chown=nonroot . . # Show build caching stats to check if it was used in the end. # Has to be the part of the same RUN since cachepot daemon is killed in the end of this RUN, losing the compilation stats. RUN set -e \ -&& mold -run cargo build --bin pageserver --bin pageserver_binutils --bin draw_timeline_dir --bin safekeeper --bin storage_broker --bin proxy --locked --release \ + && mold -run cargo build \ + --bin pg_sni_router \ + --bin pageserver \ + --bin pageserver_binutils \ + --bin draw_timeline_dir \ + --bin safekeeper \ + --bin storage_broker \ + --bin proxy \ + --locked --release \ && cachepot -s # Build final image @@ -63,6 +71,7 @@ RUN set -e \ && useradd -d /data neon \ && chown -R neon:neon /data +COPY --from=build --chown=neon:neon /home/nonroot/target/release/pg_sni_router /usr/local/bin COPY --from=build --chown=neon:neon /home/nonroot/target/release/pageserver /usr/local/bin COPY --from=build --chown=neon:neon /home/nonroot/target/release/pageserver_binutils /usr/local/bin COPY --from=build --chown=neon:neon /home/nonroot/target/release/draw_timeline_dir /usr/local/bin