Install Node.js from pinned tarball
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -19,11 +19,16 @@ RUN apt-get update \
|
|||||||
python3-setuptools \
|
python3-setuptools \
|
||||||
python3-wheel \
|
python3-wheel \
|
||||||
unzip \
|
unzip \
|
||||||
|
xz-utils \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
ENV NODE_VERSION=20.19.5
|
||||||
&& apt-get install -y --no-install-recommends nodejs \
|
RUN curl -fsSL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz" -o /tmp/node.tar.xz \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& mkdir -p /opt/node \
|
||||||
|
&& tar -xJf /tmp/node.tar.xz -C /opt/node --strip-components=1 \
|
||||||
|
&& rm /tmp/node.tar.xz
|
||||||
|
|
||||||
|
ENV PATH=/opt/node/bin:${PATH}
|
||||||
|
|
||||||
RUN python3 -m pip install --no-cache-dir "mbed-cli==1.10.5"
|
RUN python3 -m pip install --no-cache-dir "mbed-cli==1.10.5"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user