mirror of
https://example.com
synced 2024-11-22 12:26:38 +09:00
docker: trim down installed packages in build stage
This commit is contained in:
parent
41b25228df
commit
54ce89ff9f
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ FROM docker.io/node:21-slim as build
|
||||||
WORKDIR /firefish
|
WORKDIR /firefish
|
||||||
|
|
||||||
# Install compilation dependencies
|
# 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
|
RUN mkdir -m777 /opt/rust /opt/cargo
|
||||||
ENV RUSTUP_HOME=/opt/rust CARGO_HOME=/opt/cargo PATH=/opt/cargo/bin:$PATH
|
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
|
RUN wget --https-only --secure-protocol=TLSv1_2 -O- https://sh.rustup.rs | sh /dev/stdin -y
|
||||||
|
|
Loading…
Reference in a new issue