ready for build
This commit is contained in:
+3
-3
@@ -4,20 +4,20 @@ ENV NEXT_TELEMETRY_DISABLED=1
|
|||||||
|
|
||||||
FROM base AS deps
|
FROM base AS deps
|
||||||
COPY package.json pnpm-lock.yaml ./
|
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 npm i -g pnpm
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
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 npm install -g pnpm
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
||||||
FROM node:20-alpine AS runner
|
FROM node:20-alpine AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ARG PORT=5000
|
ARG PORT=3000
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
ENV PORT=$PORT
|
ENV PORT=$PORT
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
PORT: ${PORT:-5000}
|
PORT: ${PORT:-3000}
|
||||||
image: pasargad-bricks:latest
|
image: pasargad-bricks:latest
|
||||||
container_name: pasargad-bricks
|
container_name: pasargad-bricks
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -13,6 +13,6 @@ module.exports = {
|
|||||||
exclude: ['/api/*', '/_next/*'],
|
exclude: ['/api/*', '/_next/*'],
|
||||||
// If you want to include additional sitemaps (for subdirectories, etc.)
|
// If you want to include additional sitemaps (for subdirectories, etc.)
|
||||||
// additionalSitemaps: [
|
// 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