Skip to content

Commit

Permalink
feat(node): Upgrade to Node 20 (5e-bits#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
bagelbits authored and markpol committed May 19, 2024
1 parent 0d17196 commit df50346
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apt-get update \
&& apt-get -y install curl \
&& apt-get clean \
&& rm -rf /var/apt/lists/*
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get install -y nodejs \
&& apt-get clean \
&& rm -rf /var/apt/lists/*
Expand All @@ -31,7 +31,7 @@ RUN mongod --fork --logpath /var/log/mongodb.log --dbpath /data/db2 \
&& mongod --dbpath /data/db2 --shutdown \
&& chown -R mongodb:mongodb /data/db2

# Make the new dir a VOLUME to persists it
# Make the new dir a VOLUME to persists it
VOLUME /data/db2

HEALTHCHECK CMD curl --connect-timeout 10 --silent --fail http://localhost:27017 || exit 1
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Database for 5e-srd-api",
"engines": {
"node": "18.x"
"node": "20.x"
},
"scripts": {
"lint": "eslint . --ext .js,.json",
Expand Down

0 comments on commit df50346

Please sign in to comment.