build: remove needless packages from the production Docker image (#77)

This commit is contained in:
Matouš Volf 2025-01-01 21:14:34 +00:00 committed by Gitea
commit da2291b6e7
Signed by: Gitea
GPG Key ID: 5CE0FF381D397F63

View File

@ -1,11 +1,9 @@
FROM rust@sha256:a45bf1f5d9af0a23b26703b3500d70af1abff7f984a7abef5a104b42c02a292b AS builder
RUN rustup target add wasm32-unknown-unknown \
&& cargo install dioxus-cli diesel_cli \
RUN cargo install dioxus-cli diesel_cli \
&& apt-get update && apt-get install -y --no-install-recommends \
nodejs=18.19.0+dfsg-6~deb12u2 \
npm=9.2.0~ds1-1 \
supervisor=4.2.5-1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*