wound_detect / Dockerfile
Ani14's picture
Update Dockerfile
7a407c2 verified
raw
history blame
474 Bytes
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 8000
# Run the command to start the development server
CMD ["uvicorn", "predict:app", "--host", "0.0.0.0", "--port", "8000"]