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 778 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
30
31
32
  1. FROM python:3.12.7-slim
  2. WORKDIR /MLDocker
  3. # Préparer les fichiers à copier
  4. COPY requirements.txt .
  5. COPY dvc.yaml dvc.lock data.dvc ./
  6. COPY .dvc/ .dvc/
  7. COPY app/ ./app/
  8. COPY data/ ./data/
  9. COPY models/ ./models/
  10. COPY config.yaml ./
  11. # Installer les dépendances système + DVC
  12. RUN apt-get update && \
  13. apt-get install -y --no-install-recommends \
  14. git gcc g++ curl ca-certificates libglib2.0-0 libsm6 libxrender1 libxext6 && \
  15. pip install --no-cache-dir -r requirements.txt && \
  16. pip install dvc[s3] && \
  17. rm -rf /var/lib/apt/lists/*
  18. # Init Git pour DVC
  19. RUN git init
  20. # Télécharger les données
  21. RUN dvc pull -v --force
  22. # PORT Streamlit
  23. EXPOSE 8501
  24. # Lancement de l'app
  25. CMD ["sh", "-c", "dvc repro && PYTHONPATH=. streamlit run /app/streamlit_app.py"]
Tip!

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

Comments

Loading...