Spaces:
Paused
Paused
Download Dockerfile from bankba/pipecounting: direct link, hf CLI and curl.
- Browser
- Download file 664 Bytes
-
https://huggingface.co/spaces/bankba/pipecounting/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bankba/pipecounting/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bankba/pipecounting/resolve/main/Dockerfile
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"] |