Files
SemapForm/Dockerfile
WorldTeacher a7ab44d67b
Some checks failed
Docker Build (PR) / Build Docker image (pull_request) Failing after 2m0s
feat: change docker image creation
2025-11-19 15:56:36 +01:00

26 lines
688 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 -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"]