Files
nextcloud-mcp-server/Dockerfile
T
2025-11-16 07:32:01 +01:00

23 lines
556 B
Docker

#FROM ghcr.io/astral-sh/uv:0.9.9-python3.11-bookworm-slim
FROM python:3.12-slim-trixie
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Install dependencies
# 1. git (required for caldav dependency from git)
# 2. sqlite for development with token db
RUN apt update && apt install --no-install-recommends --no-install-suggests -y \
git \
sqlite3
WORKDIR /app
COPY . .
RUN uv sync --locked --no-dev --no-editable
ENV PYTHONUNBUFFERED=1
ENV VIRTUAL_ENV=/app/.venv
ENTRYPOINT ["/app/.venv/bin/nextcloud-mcp-server", "--host", "0.0.0.0"]