hf-llm-api / Dockerfile
radinhas's picture
Update Dockerfile
88f7ce9
raw
history blame
450 Bytes
FROM python:3.11-slim
WORKDIR $HOME/app
COPY . .
RUN pip install -r requirements.txt
VOLUME /data
EXPOSE 23333
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
RUN mkdir -p $HOME/app/models
RUN chmod 777 $HOME/app/models
ENV MODELS_PATH=$HOME/app/models
RUN mkdir -p $HOME/app/uploads
RUN chmod 777 $HOME/app/uploads
CMD ["python", "-m", "apis.chat_api"]