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

Dockerfile 370 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
  1. FROM python:3.10.0-slim
  2. LABEL authors="Tine Šuster"
  3. ENV POETRY_VENV_IN_PROJECT=true
  4. RUN pip install -U pip setuptools \
  5. && pip install poetry \
  6. && poetry config virtualenvs.in-project true
  7. WORKDIR /app
  8. ADD . /app
  9. RUN poetry install
  10. EXPOSE 8000
  11. CMD ["/bin/bash", "-c", "source .venv/bin/activate && uvicorn src.serve.main: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...