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 532 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
22
23
24
25
26
27
28
29
  1. FROM python:3.10-slim
  2. ENV POETRY_VERSION=1.8.1
  3. # Install system dependencies
  4. RUN apt-get update \
  5. && apt-get install --no-install-recommends -y \
  6. curl \
  7. build-essential \
  8. libssl-dev \
  9. libffi-dev \
  10. python3-dev \
  11. musl-dev \
  12. && rm -rf /var/lib/apt/lists/*
  13. RUN pip install "poetry==$POETRY_VERSION"
  14. WORKDIR /app
  15. COPY poetry.lock pyproject.toml /app/
  16. RUN poetry install --no-interaction
  17. COPY models/ /app/models/
  18. COPY src/ /app/src/
  19. COPY data/ /app/data/
  20. EXPOSE 3000
  21. CMD ["poetry", "run", "serve"]
Tip!

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

Comments

Loading...