google-flan-api / Dockerfile
Sanket17's picture
Update Dockerfile
5a7daf7 verified
FROM python:3.10-slim
WORKDIR /app
COPY ./ /app
ENV HF_HOME=/app/cache
ENV TRANSFORMERS_CACHE=/app/cache
ENV TORCH_HOME=/app/cache
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
RUN pip install -r requirements.txt
RUN pip install "fastapi[standard]"
RUN pip install "uvicorn[standard]"
CMD fastapi run --reload --host=0.0.0.0 --port=7860