habulaj commited on
Commit
8178f17
verified
1 Parent(s): 4b2ecc5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -1,10 +1,17 @@
 
1
  FROM python:3.9
2
 
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt requirements.txt
 
 
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . /app
9
 
10
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
+ # Usando uma imagem base do Python
2
  FROM python:3.9
3
 
4
+ # Definir o diret贸rio de trabalho no container
5
  WORKDIR /app
6
 
7
+ # Copiar o arquivo requirements.txt para o container
8
+ COPY requirements.txt /app/requirements.txt
9
+
10
+ # Instalar as depend锚ncias
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Copiar o c贸digo da aplica莽茫o para o container
14
  COPY . /app
15
 
16
+ # Definir o comando para rodar a aplica莽茫o
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]