XY26's picture
Update Dockerfile
b480df4 verified
raw
history blame contribute delete
474 Bytes
# Use the official image. The engine is already installed here.
FROM ghcr.io/abetlen/llama-cpp-python:latest
# Switch to root to install Gradio
USER root
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install gradio huggingface_hub
# Setup User (Required by Hugging Face Spaces security)
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
CMD ["python3", "app.py"]