Skip to content

Commit

Permalink
Update to Node.js v16.16.0, use shared zlib for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
wiz committed Jul 8, 2022
1 parent ff88a65 commit c5e8a83
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.15.0
v16.16.0
4 changes: 2 additions & 2 deletions docker/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.15.0-buster-slim AS builder
FROM node:16.16.0-buster-slim AS builder

ARG commitHash
ENV DOCKER_COMMIT_HASH=${commitHash}
Expand All @@ -11,7 +11,7 @@ RUN apt-get install -y build-essential python3 pkg-config
RUN npm install --omit=dev --omit=optional
RUN npm run build

FROM node:16.15.0-buster-slim
FROM node:16.16.0-buster-slim

WORKDIR /backend

Expand Down
2 changes: 1 addition & 1 deletion docker/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16.15.0-buster-slim AS builder
FROM node:16.16.0-buster-slim AS builder

ARG commitHash
ENV DOCKER_COMMIT_HASH=${commitHash}
Expand Down
4 changes: 2 additions & 2 deletions production/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ pkg install -y zsh sudo git screen curl wget neovim rsync nginx openssl openssh-

### Node.js + npm

Build Node.js v16.15 and npm v8 from source using `nvm`:
Build Node.js v16.16.0 and npm v8 from source using `nvm`:
```
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | zsh
source $HOME/.zshrc
nvm install v16.15.0
nvm install v16.16.0 --shared-zlib
nvm alias default node
```

Expand Down
2 changes: 1 addition & 1 deletion production/install
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ echo "[*] Installing nvm.sh from GitHub"
osSudo "${MEMPOOL_USER}" sh -c 'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | zsh'

echo "[*] Building NodeJS via nvm.sh"
osSudo "${MEMPOOL_USER}" zsh -c 'source ~/.zshrc ; nvm install v16.15.0'
osSudo "${MEMPOOL_USER}" zsh -c 'source ~/.zshrc ; nvm install v16.16.0 --shared-zlib'

####################
# Tor installation #
Expand Down

0 comments on commit c5e8a83

Please sign in to comment.