docker optimize
Build and Deploy Docker Images / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-06-15 13:40:56 +03:30
parent 2b211b5b1a
commit 79de6abd20
2 changed files with 17 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
node_modules
.next
.git
.gitignore
.env
.env.*
*.md
.vscode
.cursor
.github
coverage
npm-debug.log
.dockerignore
Dockerfile*
+3 -2
View File
@@ -17,13 +17,14 @@ WORKDIR /app
FROM base AS deps
# RUN apk add --no-cache libc6-compat git
COPY package*.json ./
RUN npm ci --legacy-peer-deps --ignore-scripts --loglevel info
RUN --mount=type=cache,target=/root/.npm \
npm ci --legacy-peer-deps --ignore-scripts --loglevel info
FROM base AS builder
WORKDIR /build
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build && npm ci --omit=dev --legacy-peer-deps --ignore-scripts --loglevel info
RUN npm run build
FROM base AS runner
WORKDIR /app