Spaces:
Running
Running
FROM python:3.9-slim | |
# Set the working directory to /app | |
WORKDIR /app | |
# Copy the requirements file | |
COPY requirements.txt . | |
# Install the dependencies | |
RUN pip install -r requirements.txt | |
RUN apt-get update && apt-get install -y libgl1-mesa-glx | |
RUN pip install opencv-python-headless | |
# Copy the application code | |
COPY . . | |
# Expose the port | |
EXPOSE 7860 | |
# Run the command to start the development server | |
CMD ["uvicorn", "predict:app", "--host", "0.0.0.0", "--port", "7860"] |