From cdd8eb80440b66f5615b98e5cec298f6151efb68 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 21 Jul 2023 18:14:22 +0200 Subject: [PATCH] add python + modules --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 02dd608..5d8b8a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,20 @@ FROM ubuntu:latest # Install necessary packages -RUN apt-get update && apt-get install -y openssh-client git +RUN apt-get update && \ + apt-get install -y git python3 && \ + pip3 install paramiko gitpython # Copy the script into the container -COPY app.sh /app/app.sh +COPY app.py /app/app.py # Set the working directory WORKDIR /app # Make the script executable -RUN chmod +x app.sh +RUN chmod +x app.py # Set the entrypoint to execute the script -ENTRYPOINT ["/app/app.sh"] +ENTRYPOINT ["/app/app.py"] # cron fehlt