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