Files
SemapForm/Dockerfile
2025-09-28 11:06:59 +02:00

21 lines
512 B
Docker

# syntax=docker/dockerfile:1
FROM python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
# Install system deps (optional: to build some wheels faster). Kept minimal here.
WORKDIR /app
# Copy dependency list and install first (leverages Docker layer cache)
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# 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"]