Update Dockerfile
system binary installation before ohter dependencies Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -3,13 +3,12 @@ FROM node:lts-alpine3.23 AS base
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
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)
|
# Install necessary dependencies for sharp used by next/image (for image optimization)
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
RUN npm ci --legacy-peer-deps
|
||||||
|
COPY . .
|
||||||
# --- STAGE 2: Environments
|
# --- STAGE 2: Environments
|
||||||
# Development
|
# Development
|
||||||
FROM base AS development
|
FROM base AS development
|
||||||
|
|||||||
Reference in New Issue
Block a user