Spaces:
Runtime error
Runtime error
File size: 365 Bytes
db16136 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Stage 1: Build the Python environment and install dependencies
FROM python:3.11-slim-bullseye AS builder
WORKDIR /app
# Copy only the requirements file first to leverage Docker layer caching
COPY requirements.txt .
COPY setup.py .
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
COPY . .
# Run the app
CMD ["python", "app.py"]
|