llmapidemov1 / Dockerfile
Danielrahmai1991's picture
Update Dockerfile
5d43e70 verified
raw
history blame
513 Bytes
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10
# Create a new user
#RUN useradd -m -u 1000 user
# Set the working directory
WORKDIR /app
# Copy the application files
COPY . /app
# Set the correct permissions for the cache directory
#RUN mkdir -p /.cache && chown -R user:user /.cache
#RUN mkdir -p ./chroma_langchain_db && chown -R user:user ./chroma_langchain_db
# Switch to the new user
#USER user
RUN pip install -r requirements.txt
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]