-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from MindfulAI-Copilots-Bots/FabianaCampanari…
…-patch-1 Dockerfile
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
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,38 @@ | ||
# Define a imagem base | ||
FROM ghcr.io/containerbase/devcontainer:10.1.4 | ||
|
||
# Use a imagem oficial do Python a partir do Docker Hub | ||
FROM python:3.11-slim-buster | ||
|
||
# Atualiza a lista de pacotes | ||
RUN apt-get update | ||
|
||
# Instala o Python e o pip | ||
RUN apt-get install -y python3 python3-pip | ||
|
||
# Copia o arquivo de requisitos para o contêiner | ||
COPY requirements.txt . | ||
|
||
# Instala as bibliotecas Python listadas no arquivo de requisitos | ||
RUN pip3 install -r requirements.txt | ||
|
||
# Instala as dependências do projeto | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
|
||
# Define o diretório de trabalho no contêiner | ||
WORKDIR /app | ||
|
||
# Copia os arquivos do projeto para o contêiner | ||
COPY . . | ||
|
||
# Comando para iniciar o aplicativo (substitua 'my_script.py' pelo seu script Python) | ||
CMD ["python3", "my_script.py"] | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|