bai-granite / Dockerfile
Pratham Bhat
Fixed cache path
09d5f8b
raw
history blame
311 Bytes
FROM python:3.9
WORKDIR /code
RUN mkdir -p /code && chmod -R 777 /code
RUN mkdir -p /.cache && chmod -R 777 /.cache
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]