kajdun's picture
Update Dockerfile
b054a1c
raw
history blame
452 Bytes
FROM ghcr.io/kajdun/huggingface-spaces-lamacpp:main
ENV HOST 0.0.0.0
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PYTHONPATH=$HOME/app \
PYTHONUNBUFFERED=1 \
GRADIO_ALLOW_FLAGGING=never \
GRADIO_NUM_PORTS=1 \
GRADIO_SERVER_NAME=0.0.0.0 \
GRADIO_THEME=huggingface \
SYSTEM=spaces
COPY --chown=user . $HOME/app
RUN python3 -m pip install loguru
WORKDIR $HOME/app
CMD ["python3", "main.py"]