From ef84273868413cdc13bbec08abf1e7fe39d5835d Mon Sep 17 00:00:00 2001 From: nessi Date: Fri, 13 Feb 2026 11:15:17 +0100 Subject: [PATCH] Update base images in Dockerfile to use bookworm variants Replaced alpine with bookworm-slim for Node.js and nginx to bookworm. This ensures compatibility with the latest updates and improves consistency across images. Adjusted the health check command for nginx accordingly. --- frontend/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 5fc14c2..d77aab8 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22-alpine AS build +FROM node:22-bookworm-slim AS build WORKDIR /app COPY package.json package-lock.json* ./ RUN npm install @@ -7,8 +7,8 @@ ARG VITE_API_URL=/api/v1 ENV VITE_API_URL=${VITE_API_URL} RUN npm run build -FROM nginx:1.29-alpine +FROM nginx:1.29-bookworm COPY nginx.conf /etc/nginx/conf.d/default.conf COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 80 -HEALTHCHECK --interval=30s --timeout=3s --retries=5 CMD wget -qO- http://127.0.0.1/ || exit 1 +HEALTHCHECK --interval=30s --timeout=3s --retries=5 CMD nginx -t || exit 1