Spaces:
Paused
Paused
File size: 664 Bytes
ecac36d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Use an official Python runtime as a parent image
FROM python:3.10-slim-buster
LABEL maintainer="Yuwarath Suktrakool <yuwarasu@scg.com>"
# 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"] |