Spaces:
Runtime error
Runtime error
File size: 443 Bytes
9f8b41e 2bbbb9f 9f8b41e 2bbbb9f 9f8b41e 2bbbb9f d3d41c0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Use a lightweight Python image
FROM python:3.9-slim
# Set the working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY app/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
# Copy the rest of the app code
COPY app /app
# Expose the port FastAPI will use
EXPOSE 8000
# Command to run the FastAPI app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|