update nodejs install method in docker (#1168)

* fix docker nodejs install

* use install script
This commit is contained in:
Ryan Morshead 2023-12-09 09:28:33 -07:00 committed by GitHub
parent 341a4925fd
commit d6f9bfe23c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,14 @@
FROM python:3.9
WORKDIR /app/
RUN apt-get update
# Install NodeJS
# --------------
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y build-essential nodejs npm
RUN npm install -g npm@8.5.0
RUN curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh
RUN chmod 500 nsolid_setup_deb.sh
RUN ./nsolid_setup_deb.sh 20
RUN apt-get install nodejs -y
# Install Poetry
# --------------