All checks were successful
Docker Build (PR) / Build Docker image (pull_request) Successful in 2m3s
28 lines
780 B
Docker
28 lines
780 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM python:3.13-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
|
# Playwright won't be installed for actual browser automation
|
|
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
|
|
|
|
WORKDIR /app
|
|
|
|
# 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 \
|
|
--extra-index-url https://git.theprivateserver.de/api/packages/PHB/pypi/simple/ \
|
|
-r requirements.txt && \
|
|
# Clean up pip cache
|
|
rm -rf /root/.cache/pip
|
|
|
|
# Copy application code
|
|
COPY app ./app
|
|
|
|
EXPOSE 8000
|
|
|
|
# Run the FastAPI app with Uvicorn
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|