Compare commits
No commits in common. "1b640d4b1279e0b438a8ef66b00f0ab1b017b908" and "87614376f9af9792ca4fcf0e85febdbd9f63600b" have entirely different histories.
1b640d4b12
...
87614376f9
12
Dockerfile
12
Dockerfile
@ -3,13 +3,16 @@ FROM node:20-alpine AS builder
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install pnpm
|
||||||
|
RUN npm install -g pnpm@9
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json pnpm-lock.yaml ./
|
||||||
RUN npm ci
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
# Build the application
|
# Build the application
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN pnpm build
|
||||||
|
|
||||||
# Stage 2: Production
|
# Stage 2: Production
|
||||||
FROM nginx:alpine AS production
|
FROM nginx:alpine AS production
|
||||||
@ -17,7 +20,8 @@ FROM nginx:alpine AS production
|
|||||||
# Copy custom nginx config
|
# Copy custom nginx config
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
||||||
# Copy static export (everything is in /app/out)
|
# Copy built assets from builder
|
||||||
|
COPY --from=builder /app/.next/static /usr/share/nginx/html/_next/static
|
||||||
COPY --from=builder /app/out /usr/share/nginx/html
|
COPY --from=builder /app/out /usr/share/nginx/html
|
||||||
|
|
||||||
# Expose port (internal only, no SSL)
|
# Expose port (internal only, no SSL)
|
||||||
|
|||||||
6703
package-lock.json
generated
6703
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
|||||||
allowBuilds:
|
|
||||||
sharp: set this to true or false
|
|
||||||
unrs-resolver: set this to true or false
|
|
||||||
Loading…
Reference in New Issue
Block a user