Skip to content

Commit

Permalink
Merge pull request #420 from MindfulAI-Copilots-Bots/FabianaCampanari…
Browse files Browse the repository at this point in the history
…-patch-1

Dockerfile
  • Loading branch information
FabianaCampanari authored Apr 12, 2024
2 parents 8798e92 + 75db910 commit 13dc503
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .devcontainer/Dockerfile
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"]








0 comments on commit 13dc503

Please sign in to comment.