codellama_deploy / Dockerfile
hArshi07's picture
Update Dockerfile
6f92545 verified
raw
history blame
429 Bytes
FROM python:3.10
RUN useradd -m -u 1000 user
USER user
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN chown -R user:user /code
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY --chown=user:user . /code
COPY ./codellama-7b-instruct.Q4_K_M.gguf /code/codellama-7b-instruct.Q4_K_M.gguf
COPY ./main.py /code/main.py
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]