-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b728fea
commit f787592
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Utiliza uma imagem base oficial do Python | ||
FROM python:3.9-slim | ||
|
||
# Define o diretório de trabalho dentro do container | ||
WORKDIR /app | ||
|
||
# Copia o arquivo de dependências para o container | ||
COPY requirements.txt requirements.txt | ||
|
||
# Instala as dependências do projeto | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Copia o restante dos arquivos do projeto para o container | ||
COPY . . | ||
|
||
# Define a porta que o container vai expor (se necessário) | ||
# EXPOSE 5000 # Descomente se for uma aplicação web que expõe uma porta | ||
|
||
# Comando para rodar o script Python quando o container for iniciado | ||
CMD ["python", "previsai.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters