dev #16

Merged
WorldTeacher merged 5 commits from dev into main 2025-11-19 15:08:28 +00:00
2 changed files with 13 additions and 4 deletions
Showing only changes of commit a7ab44d67b - Show all commits

View File

@@ -11,3 +11,7 @@ venv/
.gitignore
node_modules/
uv.lock
test.py
result.xml
README.md
.gitea/

View File

@@ -1,15 +1,20 @@
# syntax=docker/dockerfile:1
FROM python:3.13
FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
PIP_DISABLE_PIP_VERSION_CHECK=1 \
# Playwright won't be installed for actual browser automation
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
WORKDIR /app
# Copy dependency list and install first (leverages Docker layer cache)
# Install only runtime dependencies needed for bibapi and requests
# This avoids installing Playwright browsers which are huge
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -r requirements.txt && \
# Clean up pip cache
rm -rf /root/.cache/pip
# Copy application code
COPY app ./app