1
Fork 0
mirror of https://github.com/allthingslinux/tux.git synced 2024-10-02 16:43:12 +00:00

fix(Dockerfile): separate nodejs and npm installation into a separate RUN command to improve Docker layer caching

This commit is contained in:
kzndotsh 2024-08-06 16:15:31 +00:00
parent 0396302495
commit 19e97b7cba

View file

@ -13,11 +13,11 @@ RUN apt-get update && \
shared-mime-info \
curl \
build-essential && \
nodejs && \
npm && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt install -y nodejs npm
# Install Rust and Cargo
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"