From 4d51a9af1d9016a4dc26caa4af33a497c3e7e89e Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Thu, 1 Oct 2026 00:31:27 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20.dockerignore=20=D0=B8=20=D0=BE=D0=B1=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=B8=D0=BB=20Dockerfile=20=D0=B4=D0=BB=D1=8F=20=D1=83?= =?UTF-8?q?=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=81=D0=B1?= =?UTF-8?q?=D0=BE=D1=80=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.dockerignore | 3 +++ frontend/Dockerfile | 11 ++++++----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 frontend/.dockerignore diff --git a/frontend/.dockerignore b/frontend/.dockerignore new file mode 100644 index 0000000..0f59a68 --- /dev/null +++ b/frontend/.dockerignore @@ -0,0 +1,3 @@ +node_modules +dist +test-results diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 6a0aba9..16ddce1 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -4,15 +4,16 @@ ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" RUN corepack enable -FROM base AS prod +FROM base AS build WORKDIR /app COPY pnpm-lock.yaml ./ -RUN pnpm fetch --prod +RUN pnpm fetch COPY . ./ +RUN pnpm install --offline --frozen-lockfile RUN pnpm run build -FROM nginx:1.30-alpine -COPY --from=prod /app/dist /usr/share/nginx/html -COPY nginx.conf /etc/nginx/conf.d/default.conf \ No newline at end of file +FROM nginx:1.31-alpine +COPY --from=build /app/dist /usr/share/nginx/html +COPY nginx.conf /etc/nginx/conf.d/default.conf