feat: добавил докер файл для фронта

This commit is contained in:
2026-05-08 01:24:17 +03:00
parent 047611fd24
commit 99a9c3bf4d
2 changed files with 50 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM node:24-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
FROM base AS prod
COPY pnpm-lock.yaml /app
WORKDIR /app
RUN pnpm fetch --prod
COPY . /app
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