feat: change docker image creation
Some checks failed
Docker Build (PR) / Build Docker image (pull_request) Failing after 2m0s

This commit is contained in:
2025-11-19 15:56:36 +01:00
parent cf407ff28f
commit a7ab44d67b
2 changed files with 13 additions and 4 deletions

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