Use NodeJS 16 to run Sonar analysis
This commit is contained in:
parent
dfc3b3a48e
commit
3535e4a89f
@ -1,6 +1,17 @@
|
|||||||
FROM public.ecr.aws/docker/library/python:3.9-slim-buster
|
FROM public.ecr.aws/docker/library/python:3.9-slim-buster
|
||||||
|
|
||||||
|
# Also install NodeJS 16 to run Sonar analysis
|
||||||
|
|
||||||
RUN apt-get update && \
|
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"]
|
CMD ["bash"]
|
||||||
|
@ -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"]
|
CMD ["bash"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user