1
0
Fork 1
mirror of https://example.com synced 2024-11-22 07:06:38 +09:00

docker: trim down installed packages in build stage

This commit is contained in:
naskya 2024-01-07 17:30:42 +09:00
parent 41b25228df
commit 54ce89ff9f
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -3,7 +3,7 @@ FROM docker.io/node:21-slim as build
WORKDIR /firefish
# Install compilation dependencies
RUN apt-get update && DEBIAN_FRONTEND='noninteractive' apt-get install -y python3 git wget curl build-essential
RUN apt-get update && DEBIAN_FRONTEND='noninteractive' apt-get install -y --no-install-recommends python3 git wget curl build-essential ca-certificates
RUN mkdir -m777 /opt/rust /opt/cargo
ENV RUSTUP_HOME=/opt/rust CARGO_HOME=/opt/cargo PATH=/opt/cargo/bin:$PATH
RUN wget --https-only --secure-protocol=TLSv1_2 -O- https://sh.rustup.rs | sh /dev/stdin -y