-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(node): use older version of npm to match older version of node, …
…explicitely create /data dir
- Loading branch information
1 parent
bc00f08
commit 3219f40
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -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' | ||
|