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:
parent
0396302495
commit
19e97b7cba
1 changed files with 2 additions and 2 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue