Update Dockerfile

system binary installation before ohter dependencies

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Znmin
2025-12-19 22:51:11 +01:00
committed by GitHub
parent 93ce8c6663
commit 7204288489

View File

@@ -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