Spaces:
Runtime error
Runtime error
Download Dockerfile from Anuj-Panthri/Image-Colorization: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/spaces/Anuj-Panthri/Image-Colorization/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Anuj-Panthri/Image-Colorization/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Anuj-Panthri/Image-Colorization/resolve/main/Dockerfile
514 Bytes
| FROM tensorflow/tensorflow | |
| EXPOSE 5000 | |
| COPY . /app | |
| WORKDIR /app | |
| # opencv fix | |
| RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y | |
| RUN pip install --upgrade pip | |
| RUN pip install --ignore-installed -r requirements.txt --no-cache-dir | |
| RUN pip install -e . | |
| RUN ls -lh | |
| # RUN rm -r outputs | |
| # RUN ls -lh | |
| RUN --mount=type=secret,id=COMET_API_KEY,mode=0444,required=true \ | |
| python3 download_model_comet.py --key $(cat /run/secrets/COMET_API_KEY) --version 1.0.1 | |
| RUN chmod g+w /app | |
| CMD python3 app/app.py | |