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
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
PORT: ${PORT:-5000}
|
||||
PORT: ${PORT:-3000}
|
||||
image: pasargad-bricks:latest
|
||||
container_name: pasargad-bricks
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -13,6 +13,6 @@ module.exports = {
|
||||
exclude: ['/api/*', '/_next/*'],
|
||||
// If you want to include additional sitemaps (for subdirectories, etc.)
|
||||
// additionalSitemaps: [
|
||||
// `${process.env.SITE_URL || 'http://localhost:5000'}/custom-sitemap.xml`,
|
||||
// `${process.env.SITE_URL || 'http://localhost:3000'}/custom-sitemap.xml`,
|
||||
// ],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user