Dockerize the full stack so developers can run everything with `docker compose up`. Replaces the outdated Dockerfile and docker-compose.yml with a working 6-service setup: PostgreSQL, Redis, Django backend, Celery worker, Celery beat, and SvelteKit frontend. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
305 B
Docker
14 lines
305 B
Docker
FROM node:22-slim
|
|
|
|
# Enable pnpm via corepack
|
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies (layer cached)
|
|
COPY package.json pnpm-lock.yaml* ./
|
|
RUN pnpm install --frozen-lockfile || pnpm install
|
|
|
|
EXPOSE 5173
|
|
|
|
CMD ["pnpm", "dev", "--host", "0.0.0.0"]
|