Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '20.x'
cache: 'npm'

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
run: >
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"

- name: node.js 18
- name: Use Node.js 20.x
uses: actions/setup-node@v4.0.1
with:
node-version: 18.x
node-version: '20.x'
registry-url: https://registry.npmjs.org/
cache: "npm"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
run: >
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"

- name: node.js 18
- name: Use Node.js 20.x
uses: actions/setup-node@v4.0.1
with:
node-version: 18.x
node-version: '20.x'
registry-url: https://registry.npmjs.org/
cache: "npm"

Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18.8-alpine as compiler
FROM node:20-alpine as compiler

RUN apk add --no-cache openssh-client \
&& mkdir ~/.ssh && ssh-keyscan github.com > ~/.ssh/known_hosts
Expand Down Expand Up @@ -26,6 +26,9 @@ WORKDIR /app
COPY ./package-lock.json /app/package-lock.json
COPY ./package.json /app/package.json

# Use sharp's bundled libvips instead of global one to avoid compilation issues
ENV SHARP_IGNORE_GLOBAL_LIBVIPS=1

RUN npm install

COPY ./src /app/src
Expand All @@ -44,7 +47,7 @@ RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build:server
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build:front -- --prefix-paths
RUN npm prune --production

FROM node:18.8-alpine
FROM node:20-alpine
WORKDIR /app

RUN rm -rf \
Expand Down
3 changes: 1 addition & 2 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"version": "0.0.0-development",
"author": "",
"engines": {
"node": "18.*",
"npm": "8.* || 9.*"
"node": "20.x"
},
"dependencies": {
"@dcl/hooks": "^1.0.0",
Expand Down
Loading