diff --git a/website/server/Dockerfile b/website/server/Dockerfile index a5ac1f6b..aa3d6703 100644 --- a/website/server/Dockerfile +++ b/website/server/Dockerfile @@ -1,13 +1,12 @@ # ============================================================================== # Base image # ============================================================================== -FROM node:22-slim AS builder +FROM node:22-alpine AS builder # Install git and other dependencies -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apk add --no-cache \ git \ - ca-certificates \ - && rm -rf /var/lib/apt/lists/* + ca-certificates WORKDIR /app COPY package*.json ./ @@ -24,13 +23,13 @@ RUN npm run build # ============================================================================== # Production image # ============================================================================== -FROM node:22-slim +FROM node:22-alpine -# Install git and cleanup in a single layer -RUN apt-get update && apt-get install -y --no-install-recommends \ +# Install git and other dependencies +RUN apk add --no-cache \ git \ ca-certificates \ - && rm -rf /var/lib/apt/lists/* + curl WORKDIR /app