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