Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
b4hia authored Oct 10, 2024
1 parent ee11867 commit 2754e80
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ FROM alpine:latest
# Instalar Python3, pip, git, bash e dependências
RUN apk --no-cache add python3 py3-pip git bash

# Instalar o pacote requests
RUN pip3 install requests
# Criar e ativar um ambiente virtual, e instalar o pacote requests
RUN python3 -m venv /venv && \
. /venv/bin/activate && \
pip install requests

# Copiar o script para o contêiner
COPY pull-request.py /pull-request.py

# Definir o ponto de entrada (comando que será executado ao iniciar o contêiner)
CMD ["python3", "/pull-request.py"]
CMD ["/venv/bin/python", "/pull-request.py"]

0 comments on commit 2754e80

Please sign in to comment.