diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b14587cde6c56a5749d5082d741a619704e006d1..5c21bd91918846ee3c7fbeb8ef6b112aad29d324 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,7 +18,7 @@ workflow:
 
 # Validate the fasta files if they have changed
 validate-fasta-files:
-  image: node:22-alpine
+  image: node:22-alpine3.21
   stage: validate
   rules:
     - changes:
@@ -29,7 +29,7 @@ validate-fasta-files:
 # Build the archive of the fasta files and compute the stats.
 # Commit the files in the data folder, triggering another CI.
 build-archive-and-stats:
-  image: node:22-alpine
+  image: node:22-alpine3.21
   stage: archive
   rules:
     - if: $CI_COMMIT_BRANCH == "master"
diff --git a/Dockerfile b/Dockerfile
index 8805e9642b765f9f45cf65ef59ed735739f1d2a9..545aba352769ee4f80bb65572a7777651fa543dc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
 # Builder image
 # =============
 
-FROM node:22-alpine AS builder
+FROM node:22-alpine3.21 AS builder
 WORKDIR /usr/build
 
 # Copy only the relevant files to build the application
@@ -22,7 +22,7 @@ RUN npm run build
 # Production image
 # ================
 
-FROM node:22-alpine
+FROM node:22-alpine3.21
 WORKDIR /usr/src/absd
 ENV NODE_ENV="production"