glm-4.7-flash / Dockerfile
cometapii's picture
Update Dockerfile
c2c8296 verified
raw
history blame contribute delete
694 Bytes
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y \
python3 \
python3-pip \
build-essential \
cmake \
ninja-build \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# llama-cpp-python kompiluje llama.cpp z C++ — długi build ~8 min
RUN pip3 install --no-cache-dir \
llama-cpp-python \
huggingface-hub \
fastapi \
uvicorn[standard]
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH="/home/user/.local/bin:$PATH" \
HF_HOME=/home/user/.cache/huggingface
WORKDIR /home/user/app
COPY --chown=user app.py .
COPY --chown=user entrypoint.sh .
RUN chmod +x entrypoint.sh
EXPOSE 7860
CMD ["./entrypoint.sh"]