-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: prerequisites Node.js >= 16.0.0 and npm >= 8.0.0 (#322)
BREAKING CHANGE: minimum supported Node.js v16.0.0 and npm v8.0.0
- Loading branch information
1 parent
cf6d7d0
commit 2f66f1c
Showing
7 changed files
with
21,962 additions
and
4,213 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
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
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
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 |
---|---|---|
@@ -1,25 +1,20 @@ | ||
FROM node:14-alpine | ||
FROM node:16-alpine | ||
ENV IS_DOCKER true | ||
WORKDIR /app | ||
|
||
# Install system packages | ||
RUN apk add --no-cache --no-progress \ | ||
ca-certificates \ | ||
python3 \ | ||
git \ | ||
tzdata | ||
ca-certificates \ | ||
py3-pip \ | ||
git \ | ||
tzdata | ||
|
||
# Upgrade pip and install Pipenv | ||
RUN pip3 install --no-cache-dir --progress-bar off pipenv | ||
|
||
# Install Leon | ||
# Need to explicitly run the npm preinstall and npm posinstall scripts (not needed with npm@7) | ||
# because npm tries to downgrade its privileges, and these scripts are not executed | ||
COPY ./package*.json ./ | ||
RUN npm clean-install | ||
COPY ./ ./ | ||
RUN npm run preinstall | ||
RUN npm run postinstall | ||
RUN npm install | ||
RUN npm run build | ||
|
||
CMD ["npm", "start"] |
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
Oops, something went wrong.