diff --git a/.dockerignore b/.dockerignore index 1adec87..16d4247 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,15 @@ +# Node.js / npm node_modules +package-lock.json +pnpm-lock.yaml + +# Python / uv +web/.venv +web/__pycache__ +web/*.pyc +uv.lock + +# General .git *.log .env @@ -11,4 +22,4 @@ coverage .vscode .idea *.md -!README.md +!README.md \ No newline at end of file diff --git a/packages/cli/examples/docker-compose.example.yml b/packages/cli/examples/docker-compose.example.yml deleted file mode 100644 index d63a52f..0000000 --- a/packages/cli/examples/docker-compose.example.yml +++ /dev/null @@ -1,42 +0,0 @@ -# Docker Compose example for deploying Myst with PostgreSQL -# -# Usage: -# 1. Copy to docker-compose.yml: cp packages/cli/examples/docker-compose.example.yml docker-compose.yml -# 2. Edit .env with your Forgejo config -# 3. Run: docker compose up -d -# -# The DATABASE_URL is auto-handled by Docker Compose networking. - -services: - myst: - image: myst:latest - container_name: myst - restart: unless-stopped - ports: - - "3000:3000" - environment: - - DATABASE_URL=postgresql://myst:myst@db:5432/myst - env_file: - - .env - depends_on: - db: - condition: service_healthy - - db: - image: postgres:16-alpine - container_name: myst-db - restart: unless-stopped - environment: - - POSTGRES_USER=myst - - POSTGRES_PASSWORD=myst - - POSTGRES_DB=myst - volumes: - - myst-postgres:/var/lib/postgresql/data - healthcheck: - test: ["CMD-SHELL", "pg_isready -U myst -d myst"] - interval: 5s - timeout: 5s - retries: 5 - -volumes: - myst-postgres: diff --git a/web/Dockerfile b/web/Dockerfile index 4f8e31c..308424a 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,11 +1,11 @@ FROM python:3.13-slim +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ + WORKDIR /app -COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv - COPY pyproject.toml uv.lock ./ -RUN uv sync --frozen +RUN UV_NO_DEV=1 uv sync --frozen --no-cache COPY . .