Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

backend.Dockerfile 638 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  1. FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8-slim
  2. # only for albumentations, remove when they cleanup their dependencies
  3. # https://albumentations.ai/docs/getting_started/installation/#note-on-opencv-dependencies
  4. RUN apt-get update && \
  5. apt-get install -y libgl1-mesa-dev libglib2.0-0 libsm6 libxrender1 libxext6
  6. RUN mkdir /backend
  7. COPY docker/requirements-backend.txt /backend/requirements.txt
  8. WORKDIR /backend
  9. COPY . /backend
  10. RUN pip install -r requirements.txt -f https://download.pytorch.org/whl/torch_stable.html
  11. EXPOSE 8000
  12. CMD ["uvicorn", "deadtrees.deployment.server:app", "--host", "0.0.0.0", "--port", "8000"]
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...