Skip to content

Commit

Permalink
feat(node): use older version of npm to match older version of node, …
Browse files Browse the repository at this point in the history
…explicitely

create /data dir
  • Loading branch information
missinglink committed Nov 30, 2023
1 parent bc00f08 commit 3219f40
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="[email protected]"

# 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 3219f40

Please sign in to comment.