17 lines
508 B
Docker
17 lines
508 B
Docker
FROM python:3.13-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends curl build-essential && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY backend/requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
COPY backend /app
|
|
RUN mkdir -p /app/storage
|
|
|
|
EXPOSE 8000
|
|
CMD ["fastapi", "run", "app/main.py", "--host", "0.0.0.0", "--port", "8000"]
|