initial commit
This commit is contained in:
@@ -3,12 +3,12 @@ FROM node:lts-alpine3.23 AS base
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
|
||||
# Install necessary dependencies for sharp used by next/image (for image optimization)
|
||||
RUN apk add --no-cache libc6-compat
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci --legacy-peer-deps
|
||||
COPY . .
|
||||
|
||||
RUN apk add --no-cache libc6-compat
|
||||
|
||||
# --- STAGE 2: Environments
|
||||
# Development
|
||||
FROM base AS development
|
||||
|
||||
@@ -10,7 +10,7 @@ services:
|
||||
- "4000:3000"
|
||||
volumes:
|
||||
- ./public/uploads:/app/public/uploads
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
env_file:
|
||||
- .env
|
||||
# Add additional Next.js runtime configuration below as needed, for example:
|
||||
# - NEXT_PUBLIC_API_URL=https://api.example.com
|
||||
|
||||
Reference in New Issue
Block a user