# Use an official Python runtime as a parent image FROM python:3.10-slim-buster LABEL maintainer="Yuwarath Suktrakool " # Set the working directory in the container WORKDIR /app # Copy the current directory contents into the container COPY . /app RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 git -y RUN git clone https://github.com/ultralytics/yolov5.git # Install any needed packages specified in requirements.txt RUN pip install -r requirements.txt # Expose port 80 EXPOSE 80 # Run Streamlit app #CMD ["streamlit", "run", "--server.port", "80", "app.py"] CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]