ready for build
This commit is contained in:
+3
-3
@@ -4,20 +4,20 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
FROM base AS deps
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN npm config set registry https://hub.megan.ir/npm
|
||||
# RUN npm config set registry https://hub.megan.ir/npm
|
||||
RUN npm i -g pnpm
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
FROM base AS builder
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
RUN npm config set registry https://hub.megan.ir/npm
|
||||
# RUN npm config set registry https://hub.megan.ir/npm
|
||||
RUN npm install -g pnpm
|
||||
RUN pnpm build
|
||||
|
||||
FROM node:20-alpine AS runner
|
||||
WORKDIR /app
|
||||
ARG PORT=5000
|
||||
ARG PORT=3000
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV PORT=$PORT
|
||||
|
||||
Reference in New Issue
Block a user