Add Dockerfile, .dockerignore, and Gitea CI for image build/push

Made-with: Cursor
This commit is contained in:
2026-03-31 18:21:08 -05:00
parent 612fbe2055
commit 7fec4bc575
4 changed files with 86 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
# syntax=docker/dockerfile:1
# Production image: uv sync (frozen lockfile), run FastAPI with uvicorn.
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
WORKDIR /app
ENV UV_COMPILE_BYTECODE=1 \
UV_LINK_MODE=copy
COPY pyproject.toml uv.lock README.md ./
COPY src ./src
RUN uv sync --frozen --no-dev
ENV PATH="/app/.venv/bin:$PATH"
EXPOSE 8080
CMD ["uvicorn", "notebook_tools.api:app", "--host", "0.0.0.0", "--port", "8080"]