Download Dockerfile from webnowa/IMAGPRO: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/spaces/webnowa/IMAGPRO/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/webnowa/IMAGPRO/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/webnowa/IMAGPRO/resolve/main/Dockerfile
473 Bytes
| FROM python:3.10 | |
| # katalog aplikacji | |
| WORKDIR /app | |
| # kopiowanie plików projektu | |
| COPY . /app | |
| # aktualizacja pip | |
| RUN pip install --upgrade pip | |
| # instalacja bibliotek | |
| RUN pip install torch | |
| RUN pip install diffusers | |
| RUN pip install transformers | |
| RUN pip install accelerate | |
| RUN pip install safetensors | |
| RUN pip install pillow | |
| RUN pip install flask | |
| RUN pip install deep-translator | |
| # port wymagany przez HuggingFace | |
| EXPOSE 7860 | |
| # uruchomienie backendu | |
| CMD ["python", "api.py"] |