From f511f4e9b4504ceb0cc2060421f9123ada428f73 Mon Sep 17 00:00:00 2001
From: Simon Malesys <simon.malesys@pasteur.fr>
Date: Tue, 18 Feb 2025 15:24:19 +0100
Subject: [PATCH] Fix the node alpine version for safety

---
 .gitlab-ci.yml | 4 ++--
 Dockerfile     | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b14587c..5c21bd9 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 8805e96..545aba3 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"
 
-- 
GitLab