Spaces:
Runtime error
Runtime error
File size: 431 Bytes
02be258 1713970 95ff693 1713970 95ff693 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Src/Dockerfile - Backend API for DockerCompose
FROM python:3.12-slim
WORKDIR /app
# Copy requirements and install dependencies
COPY ../requirements.txt ./
RUN pip install --upgrade pip && \
pip install -r requirements.txt
# Copy source files, database, and artifacts
COPY . .
COPY Artifacts ./Artifacts/
COPY models ./models/
EXPOSE 7860
CMD ["uvicorn", "Src.api.fastapi_app:app", "--host", "0.0.0.0", "--port", "7860"] |