refactor: install ubuntu basis tools in separate layer

This commit is contained in:
Martin Riedl 2025-03-29 10:05:24 +01:00
parent 7aa4e233a2
commit 518378b5c6
Signed by: martinr92
GPG key ID: FB68DA65516A804C

View file

@ -2,9 +2,13 @@ FROM ubuntu:24.04
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
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && \
curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
RUN curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt-get install -y --no-install-recommends nodejs && \
rm -rf /var/lib/apt/lists/* && \