Download Dockerfile from red-kit/loop-gpt-image-handler: direct link, hf CLI and curl.
- Browser
- Download file 475 Bytes
-
https://huggingface.co/red-kit/loop-gpt-image-handler/resolve/main/Dockerfile
- Command line
-
hf download hf://red-kit/loop-gpt-image-handler/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/red-kit/loop-gpt-image-handler/resolve/main/Dockerfile
475 Bytes
| FROM huggingface/transformers-pytorch-gpu:latest | |
| WORKDIR /repository | |
| # Install diffusers from source (supports GLM-Image) + flask for serving | |
| RUN pip install --no-cache-dir | |
| git+https://github.com/huggingface/diffusers.git | |
| flask | |
| accelerate | |
| sentencepiece | |
| protobuf | |
| COPY server.py /repository/server.py | |
| COPY handler.py /repository/handler.py | |
| COPY requirements.txt /repository/requirements.txt | |
| EXPOSE 8000 | |
| CMD ["python", "/repository/server.py"] | |