Upgrade to Node 20

This commit is contained in:
Jake Howard 2023-08-19 13:40:20 +01:00
parent 67e5e35a06
commit b8bbc79de4
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ stages:
- deploy - deploy
static: static:
image: node:19-slim image: node:20-slim
stage: build stage: build
cache: cache:
key: npm-$CI_COMMIT_REF_SLUG key: npm-$CI_COMMIT_REF_SLUG
@ -116,7 +116,7 @@ gunicorn_check:
- gunicorn --check-config --config etc/gunicorn.conf.py - gunicorn --check-config --config etc/gunicorn.conf.py
npm_lint: npm_lint:
image: node:19-slim image: node:20-slim
stage: test stage: test
dependencies: dependencies:
- static - static

View File

@ -1,4 +1,4 @@
FROM node:19-slim as frontend FROM node:20-slim as frontend
RUN apt-get update --yes --quiet && apt-get install --yes --quiet curl RUN apt-get update --yes --quiet && apt-get install --yes --quiet curl
@ -60,7 +60,7 @@ FROM production as dev
# Swap user, so the following tasks can be run as root # Swap user, so the following tasks can be run as root
USER root USER root
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash - && apt-get install -y nodejs RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
RUN apt-get install -y postgresql-client inotify-tools RUN apt-get install -y postgresql-client inotify-tools
RUN curl -sSf https://just.systems/install.sh | bash -s -- --to /usr/bin RUN curl -sSf https://just.systems/install.sh | bash -s -- --to /usr/bin