Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
FROM node:22-alpine AS builder
WORKDIR /app

# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate

# Install dependencies
COPY package*.json ./
COPY package.json pnpm-lock.yaml ./
COPY patches ./patches
RUN npm ci --prefer-offline && npm cache clean --force
RUN pnpm install --frozen-lockfile

# Copy rest of the files and build
COPY . .
ENV NEXT_TELEMETRY_DISABLED=1 NODE_ENV=production
RUN npm run build
RUN pnpm run build

# ---- Runner stage ----
FROM node:22-alpine AS runner
Expand Down
21 changes: 21 additions & 0 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis-data:/data
restart: unless-stopped
command: redis-server --appendonly yes

app:
extends:
file: docker-compose.yml
service: app
environment:
- REDIS_URL=redis://redis:6379
depends_on:
- redis

volumes:
redis-data:
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ services:
env_file:
- .env
restart: unless-stopped

Loading