Skip to content

Commit

Permalink
Update dependencies (#1183)
Browse files Browse the repository at this point in the history
- Updated Node version to the latest LTS (20.9.0 -> 22.11.0)
- Updated Express to the new major version (4.21.0 -> 5.0.1).
   The only change that was required was a change of a route notation (app.get('*', ...) 
   had to change to app.get('*splat', ...))
- A bump of the version of mock service worker required an update to the jsdom environment
  (apparently, msw now tries to access the BroadcastChannel global)
  • Loading branch information
azangru authored Nov 5, 2024
1 parent cf1865a commit abb78d0
Show file tree
Hide file tree
Showing 7 changed files with 2,990 additions and 4,083 deletions.
3 changes: 1 addition & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ variables:
# Template to build static assets
.build-static:
stage: test_build_static
image: node:20.9.0
image: node:22.11.0

before_script:
- npm install --global [email protected]
- npm ci --loglevel warn

script:
Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.9.0 AS builder
FROM node:22.11.0 AS builder

ARG SOURCE_DIR="./"

Expand All @@ -8,14 +8,13 @@ COPY ${SOURCE_DIR} /srv/ensembl-client/

WORKDIR /srv/ensembl-client/

RUN npm install --global [email protected] && \
npm ci --loglevel warn && \
RUN npm ci --loglevel warn && \
npm run test && \
npm run build


# PRODUCTION IMAGE
FROM node:20.9.0-alpine AS runner
FROM node:22.11.0-alpine AS runner

WORKDIR /srv/ensembl-client/

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.node
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PRODUCTION IMAGE
FROM node:20.9.0-alpine
FROM node:22.11.0-alpine

RUN apk add --no-cache git

Expand Down
Loading

0 comments on commit abb78d0

Please sign in to comment.