redkits's picture
Upload Dockerfile with huggingface_hub
164703b verified
Raw
History Blame Contribute Delete
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"]