Use NodeJS 16 to run Sonar analysis

This commit is contained in:
Arseniy Zaostrovnykh 2023-12-07 16:14:58 +01:00 committed by GitHub
parent dfc3b3a48e
commit 3535e4a89f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,17 @@
FROM public.ecr.aws/docker/library/python:3.9-slim-buster
# Also install NodeJS 16 to run Sonar analysis
RUN apt-get update && \
apt-get install -y --no-install-recommends jq php-json-schema asciidoctor pipenv git curl
apt-get install -y --no-install-recommends jq php-json-schema asciidoctor pipenv git curl \
ca-certificates gnupg && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | \
gpg --dearmor -o /etc/apt/nodesource-keyring.gpg && \
echo "deb [signed-by=/etc/apt/nodesource-keyring.gpg] https://deb.nodesource.com/node_16.x nodistro main" \
> /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get install nodejs && \
rm -rf /var/lib/apt/lists/*
CMD ["bash"]

View File

@ -1,3 +1,3 @@
FROM public.ecr.aws/docker/library/node:14.17.0
FROM public.ecr.aws/docker/library/node:16.20.2
CMD ["bash"]