From bedb1b482e29ad54ac6618e60a6e97564957ba1a Mon Sep 17 00:00:00 2001 From: Parsa Nazer Date: Mon, 10 Nov 2025 22:12:51 +0330 Subject: [PATCH] update dockerfile --- frontend/dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/frontend/dockerfile b/frontend/dockerfile index f3ffd85..5f77df5 100644 --- a/frontend/dockerfile +++ b/frontend/dockerfile @@ -1,17 +1,14 @@ -# Build stage — use Node to correctly install native deps -FROM node:22-alpine AS build-stage +FROM node:20-alpine as build-stage WORKDIR /app - COPY package*.json ./ -RUN npm ci --os=linux --cpu=x64 - +RUN npm install --ignore-scripts=false --force COPY . . RUN npm run build -# Run stage — use Bun for serving -FROM oven/bun:1 AS production-stage +FROM node:20-alpine as production-stage WORKDIR /app +RUN npm rebuild --verbose sharp COPY --from=build-stage /app /app EXPOSE 3000 ENV NODE_ENV=production -CMD ["bun", "run", "start"] \ No newline at end of file +CMD ["npm", "run", "start"]