Dockerfile 230 B

12345678
  1. FROM pytorch/pytorch:1.13.1-cuda11.6-cudnn8-runtime
  2. ENV PORT=8000
  3. RUN pip install sentence-transformers fastapi uvicorn gradio
  4. WORKDIR /model
  5. COPY . .
  6. RUN chmod +x ./entrypoint.sh
  7. EXPOSE 8080
  8. ENTRYPOINT [ "/model/entrypoint.sh" ]