llm-discord-bot / Dockerfile
chansung's picture
Update Dockerfile
c779ec3
raw
history blame
638 Bytes
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM python:3.10
RUN useradd -m -u 1000 user
USER user
WORKDIR /LLM-As-Chatbot
RUN git clone https://github.com/deep-diver/LLM-As-Chatbot.git .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
ENV HF_HOME=./
ENV LLMCHAT_APP_MODE=DISCORD
ENV DISCORD_BOT_MODEL_NAME=alpaca-lora-7b
ENV DISCORD_BOT_MAX_WORKERS=1
ENV DISCORD_BOT_LOAD_MODE=CPU
COPY health_check.py health_check.py
COPY entry_script.sh entry_script.sh
RUN /bin/bash -c 'chmod -R +x ./entry_script.sh'
CMD ./entry_script.sh