Spaces:
Runtime error
Runtime error
Download Dockerfile from enemy7/image-caption: direct link, hf CLI and curl.
- Browser
- Download file 464 Bytes
-
https://huggingface.co/spaces/enemy7/image-caption/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/enemy7/image-caption/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/enemy7/image-caption/resolve/main/Dockerfile
464 Bytes
| FROM python:3.9 | |
| WORKDIR /app | |
| COPY requirements.txt /app/ | |
| RUN pip3 install -r requirements.txt | |
| RUN chmod 777 /app | |
| COPY . /app | |
| # RUN ["python3" ,"-m" ,"nltk.downloader" ,"all" ,"-d", "/nltk_data"] | |
| #CMD ["flask" , "run" , "--host=0.0.0.0", "--port=7860" ] | |
| # CMD ["/bin/sh","/usr/bin/python3" ,"-m" ,"http.server" ,"-b", "0.0.0.0" ,"7860","&","/usr/bin/python3", "main.py" ,">>", "log.txt"] | |
| # & python3 -m http.server -b 0.0.0.0 7860 | |
| CMD ["python3", "main.py" ] |