-
Notifications
You must be signed in to change notification settings - Fork 569
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #199 from willroberts/upgrade-node
Upgrades Node.js to v18
- Loading branch information
Showing
12 changed files
with
77 additions
and
21 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
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,15 +1,14 @@ | ||
# This image is 114MB vs. 856MB for node:lts. | ||
FROM node:16-alpine | ||
# Slim images are based on Debian, but with a smaller size footprint. | ||
FROM node:18-slim | ||
|
||
# Install bcrypt dependencies and git. | ||
# TODO: Isolate bcrypt dependencies to API images only. | ||
RUN apt-get update && apt-get -y install python3 make gcc g++ git | ||
|
||
# Work around boneskull/yargs dependency using the deprecated git protocol. | ||
RUN apk add git | ||
RUN git config --global url."https://github.com/".insteadOf [email protected]: | ||
RUN git config --global url."https://".insteadOf git:// | ||
|
||
# Add Python and other build utils for bcrypt. | ||
# TODO: Put this into an intermediate layer to reduce Game/Migrate/SP image size. | ||
RUN apk add python3 make gcc g++ | ||
|
||
# Include Node.js dependencies in the image. | ||
WORKDIR /duelyst | ||
COPY package.json /duelyst/ | ||
|
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,15 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install bcrypt dependencies and git. | ||
# TODO: Isolate bcrypt dependencies to API images only. | ||
apt-get update && apt-get install -y python3 make gcc g++ git | ||
|
||
# Work around boneskull/yargs dependency using the deprecated git protocol. | ||
apk add git | ||
git config --global url."https://github.com/".insteadOf [email protected]: | ||
git config --global url."https://".insteadOf git:// | ||
|
||
# Install node-gyp dependencies for bcrypt in API and worker | ||
apk add python3 make gcc g++ | ||
|
||
# Install dependencies. | ||
yarn install --production | ||
yarn install --production && yarn cache clean | ||
|
||
# Use exec to take over the PID from the shell, enabling signal handling. | ||
exec yarn $1 |
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,3 +1,3 @@ | ||
{ | ||
"version": "1.97.6" | ||
"version": "1.97.7" | ||
} |