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 477 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. # image Python
  2. FROM ultralytics/ultralytics:latest-python
  3. # Copie des fichiers de l'application dans le conteneur
  4. COPY . /app
  5. # Le répertoire de travail dans le conteneur
  6. WORKDIR /app
  7. # Installation des dépendances de l'application
  8. RUN pip install -r requirements.txt 2>&1 | tee pip_install.log
  9. # Exposition de port sur lequel l'application FastAPI écoute
  10. EXPOSE $PORT
  11. # Commande pour exécuter l'application FastAPI
  12. CMD uvicorn api:app --host 0.0.0.0 --port $PORT
Tip!

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

Comments

Loading...