From 280c8c27305d8b07a6f2ef1e4126456619fbf0cf Mon Sep 17 00:00:00 2001 From: suphicakir Date: Wed, 15 Jul 2026 02:28:04 +0300 Subject: [PATCH] Dockerfile npm install duzeltmesi --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5a83050..8241966 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,13 @@ FROM node:lts AS base WORKDIR /app - FROM base AS deps COPY package*.json ./ -RUN npm install - +RUN npm install --legacy-peer-deps FROM base AS build COPY --from=deps /app/node_modules ./node_modules COPY . . -RUN npm install --legacy-peer-deps - +RUN npm run build FROM nginx:stable-alpine AS deploy COPY --from=build /app/dist /usr/share/nginx/html COPY ./nginx/nginx.conf /etc/nginx/nginx.conf - -EXPOSE 8080 +EXPOSE 8080 \ No newline at end of file