From 0d31d3f67ce245d603a4dcd1a0157b765c5603a2 Mon Sep 17 00:00:00 2001 From: "S. Andrew Sheppard" Date: Wed, 15 Nov 2023 14:53:05 -0500 Subject: [PATCH] preinstall node and npm --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index a1daef4..ef59459 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,12 @@ FROM python:3.11-bookworm RUN apt-get update && apt-get install -y libgdal32 libsqlite3-mod-spatialite RUN python -m pip install wq gunicorn whitenoise +# Install node and npm +RUN \ + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \ + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" > /etc/apt/sources.list.d/nodesource.list && \ + apt-get update && apt-get install -y nodejs + # Generate demo project RUN wq create demo /demo -d localhost -t Demo --with-gis --without-npm WORKDIR /demo/db