pipecounting / Dockerfile
bankba's picture
Upload 8 files
ecac36d
Raw History Blame Contribute Delete
664 Bytes
# 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"]