add python + modules

This commit is contained in:
Michael Grote 2023-07-21 18:14:22 +02:00
parent f7f1d6e4d1
commit cdd8eb8044

View file

@ -1,18 +1,20 @@
FROM ubuntu:latest FROM ubuntu:latest
# Install necessary packages # 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 the script into the container
COPY app.sh /app/app.sh COPY app.py /app/app.py
# Set the working directory # Set the working directory
WORKDIR /app WORKDIR /app
# Make the script executable # Make the script executable
RUN chmod +x app.sh RUN chmod +x app.py
# Set the entrypoint to execute the script # Set the entrypoint to execute the script
ENTRYPOINT ["/app/app.sh"] ENTRYPOINT ["/app/app.py"]
# cron fehlt # cron fehlt