update path dockerfile
This commit is contained in:
+1
-4
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user