defo_detect_2 / Dockerfile
arsh1101's picture
Update Dockerfile
e6bfd88 verified
raw
history blame contribute delete
437 Bytes
FROM python:3.9
# Set working directory
WORKDIR /app
# Install system dependencies for OpenCV
RUN apt-get update && apt-get install -y libgl1 && apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy application files
COPY . /app
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port
EXPOSE 8000
# Command to start Uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]