feat: добавил .dockerignore и обновил Dockerfile для улучшения сборки
Frontend CI / build-and-check (push) Failing after 20s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 4s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 4s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 22s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 3s

This commit is contained in:
serega404 committed 2026-10-01 00:31:27 +03:00
1 parent 11f8dc554b
commit 4d51a9af1d
2 files changed
+9 -5

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
node_modules
dist
test-results
+6 -5
View File
@@ -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
FROM nginx:1.31-alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf