From 720428848925b293c5c52578d723077a9166db22 Mon Sep 17 00:00:00 2001 From: Znmin <84540638+Haranmes@users.noreply.github.com> Date: Fri, 19 Dec 2025 22:51:11 +0100 Subject: [PATCH] Update Dockerfile system binary installation before ohter dependencies Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 42d0197..343246d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,12 @@ FROM node:lts-alpine3.23 AS base WORKDIR /app COPY package.json package-lock.json ./ -# Install dependencies -RUN npm ci --legacy-peer-deps -COPY . . - # Install necessary dependencies for sharp used by next/image (for image optimization) RUN apk add --no-cache libc6-compat +# Install dependencies +RUN npm ci --legacy-peer-deps +COPY . . # --- STAGE 2: Environments # Development FROM base AS development