Skip to content

Commit 9f16b75

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Docker] Ubuntu base image regressed to 22.04
1 parent c8cf0c2 commit 9f16b75

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ RUN apt-get -y update && \
99

1010
FROM init AS builder
1111

12-
# build tools
12+
ARG DEBIAN_FRONTEND=noninteractive
13+
ENV TZ=Etc/UTC
1314

15+
# build tools
1416
RUN apt-get update && \
1517
apt-get -y install --no-install-recommends --no-install-suggests gnupg software-properties-common && \
1618
rm -rf /var/lib/apt/lists/*
@@ -19,8 +21,7 @@ RUN apt-key add llvm-snapshot.gpg.key && \
1921
apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main" && \
2022
apt-get -y update && \
2123
apt-get -y install --no-install-recommends --no-install-suggests clang-format && \
22-
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata && \
23-
apt-get -y install --no-install-recommends --no-install-suggests build-essential cmake g++ make && \
24+
apt-get -y install --no-install-recommends --no-install-suggests build-essential cmake g++ make pkg-config && \
2425
rm -rf /var/lib/apt/lists/*
2526

2627
# vcpkg Package Manager
@@ -64,13 +65,13 @@ FROM builder AS development
6465

6566
FROM builder AS lint
6667

67-
RUN apt-get -y update && \
68-
apt-get -y install --no-install-recommends --no-install-suggests dialog apt-utils && \
68+
ADD https://deb.nodesource.com/setup_22.x nodesource_setup.sh
69+
RUN bash nodesource_setup.sh && \
70+
apt-get -y install --no-install-recommends --no-install-suggests nodejs && \
71+
npm install -g --ignore-scripts markdownlint-cli \
6972
apt-get -y install --no-install-recommends --no-install-suggests yamllint && \
70-
apt-get -y install --no-install-recommends --no-install-suggests nodejs npm && \
7173
apt-get -y install --no-install-recommends --no-install-suggests cppcheck && \
72-
rm -rf /var/lib/apt/lists/* && \
73-
npm install -g --ignore-scripts markdownlint-cli
74+
rm -rf /var/lib/apt/lists/*
7475

7576
# Code source
7677
COPY ./src ${WORKDIR}/src

0 commit comments

Comments
 (0)