Skip to content

Commit

Permalink
preinstall node and npm
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Nov 15, 2023
1 parent b22a6e2 commit 0d31d3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d31d3f

Please sign in to comment.