llama / Dockerfile
ayureasehealthcare's picture
Update Dockerfile
f8bdf0c verified
Raw
History Blame Contribute Delete
424 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Make cache directory
RUN mkdir -p /data/cache
# Copy code
COPY ./app /app/app
COPY ./app/requirements.txt /app/requirements.txt
# Install dependencies
RUN pip install --upgrade pip && pip install -r /app/requirements.txt
EXPOSE 7860
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]