update path dockerfile

This commit is contained in:
Karim Pirzargar
2026-05-03 17:05:09 +03:30
parent c38c226dbd
commit 7b760eaa4b
2 changed files with 3 additions and 23 deletions
+1 -4
View File
@@ -36,10 +36,7 @@ steps:
- pnpm run test:e2e
- pnpm run build
- cp -R .next/standalone/. ./artifacts/node/
- mkdir -p ./artifacts/node/.next
- cp -R .next/static ./artifacts/node/.next/static
- cp -R ./public ./artifacts/node/public
- ls -ltrh ./artifacts/node
- ls -ltrha ./artifacts/node
- name: build panel
image: plugins/docker
+2 -19
View File
@@ -1,29 +1,12 @@
FROM docker-mirror.ravanertebat.ir/hub/node:22.14 AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="${PNPM_HOME}:${PATH}"
WORKDIR /app
RUN corepack enable
FROM base AS deps
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
FROM base AS builder
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN pnpm run build
FROM docker-mirror.ravanertebat.ir/hub/node:22.14 AS runner
FROM docker-mirror.ravanertebat.ir/hub/node:22.14
WORKDIR /app
ENV NODE_ENV=production
ENV HOSTNAME="0.0.0.0"
COPY ./artifacts/node /app
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
EXPOSE 3000