Spaces:
Sleeping
Sleeping
File size: 800 Bytes
9419f40 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # Start with Python
FROM python:3.11-slim
# Set the working directory inside the container
WORKDIR /app
# 1. Copy requirements (Relative to current folder, no 'backend/' prefix)
COPY requirements.txt .
# 2. Install dependencies
# Added --no-cache-dir to keep image size small
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# This ARG changes whenever force rebuild is needed.
# We don't even need to pass a value; just the existence of a changed line forces a rebuild.
ARG CACHEBUST=20251217
# 3. Copy the rest of the code (Current folder -> /app)
COPY . .
# 4. Run the application
# Note: application:app works because application.py is now at /app/application.py
CMD ["uvicorn", "application:app", "--host", "0.0.0.0", "--port", "7860"] |