Skip to content
Snippets Groups Projects
Commit 858979c2 authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

update nodejs installer

parent b4e38356
No related branches found
No related tags found
1 merge request!9Release
Pipeline #15151 passed
...@@ -3,8 +3,16 @@ FROM python:3.10 ...@@ -3,8 +3,16 @@ FROM python:3.10
RUN mkdir /app RUN mkdir /app
WORKDIR /app WORKDIR /app
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - # Install NodeJS
RUN apt-get install nodejs && rm -rf /var/lib/apt/lists/* ENV NODE_MAJOR=20
RUN apt-get update
RUN apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install -y nodejs
RUN rm -rf /var/lib/apt/lists/*
COPY . . COPY . .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment