refactor: install ubuntu basis tools in separate layer
This commit is contained in:
parent
7aa4e233a2
commit
518378b5c6
1 changed files with 6 additions and 2 deletions
|
@ -2,9 +2,13 @@ FROM ubuntu:24.04
|
||||||
|
|
||||||
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# install basis tools
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y --no-install-recommends curl ca-certificates && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# install nodejs
|
# install nodejs
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && \
|
RUN curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
|
||||||
curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
|
|
||||||
bash nodesource_setup.sh && \
|
bash nodesource_setup.sh && \
|
||||||
apt-get install -y --no-install-recommends nodejs && \
|
apt-get install -y --no-install-recommends nodejs && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
|
Loading…
Add table
Reference in a new issue