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 550 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
  1. # Use Python 3.11.5
  2. FROM python:3.11.5
  3. # Set the working directory
  4. WORKDIR /app
  5. # Install Poetry
  6. RUN pip install poetry==1.8.2
  7. # Copy the poetry.lock and pyproject.toml files
  8. COPY poetry.lock pyproject.toml /app/
  9. # Install dependencies using Poetry
  10. RUN poetry install --no-interaction --no-root
  11. # Copy the rest of the application code
  12. COPY . /app
  13. # Expose port 8080
  14. EXPOSE 8080
  15. # Set PYTHONPATH to include /app directory
  16. ENV PYTHONPATH "${PYTHONPATH}:/app"
  17. # Command to run the application
  18. CMD ["poetry", "run", "python", "src/serve/api.py"]
Tip!

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

Comments

Loading...