Skip to content

Commit

Permalink
node: use older version of npm to match older version of node
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed Nov 30, 2023
1 parent bc00f08 commit 6717702
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ENV LC_ALL 'en_US.UTF-8'
LABEL maintainer="team@pelias.io"

# configure directories
RUN mkdir -p '/code/pelias'
RUN mkdir -p '/data' '/code/pelias'

# configure volumes
VOLUME "/data"
Expand All @@ -35,8 +35,10 @@ RUN git clone 'https://github.com/isaacs/nave.git' /code/nave && /code/nave/nave
# add global install dir to $NODE_PATH
ENV NODE_PATH="/usr/local/lib/node_modules:$NODE_PATH"

# node version is so old it requires an older version of npm (max version 9)
# https://stackoverflow.com/a/77024158
# ensure NPM is up to date
RUN npm install -g npm
RUN npm i npm@9 -g

# get ready for pelias config with an empty file
ENV PELIAS_CONFIG '/code/pelias.json'
Expand Down

0 comments on commit 6717702

Please sign in to comment.