2023-07-19 20:46:20 +02:00
|
|
|
FROM ubuntu:latest
|
|
|
|
|
|
|
|
# Install necessary packages
|
2023-07-21 18:14:22 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y git python3 && \
|
|
|
|
pip3 install paramiko gitpython
|
2023-07-19 20:46:20 +02:00
|
|
|
|
|
|
|
# Copy the script into the container
|
2023-07-21 18:14:22 +02:00
|
|
|
COPY app.py /app/app.py
|
2023-07-19 20:46:20 +02:00
|
|
|
|
|
|
|
# Set the working directory
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# Make the script executable
|
2023-07-21 18:14:22 +02:00
|
|
|
RUN chmod +x app.py
|
2023-07-19 20:46:20 +02:00
|
|
|
|
|
|
|
# Set the entrypoint to execute the script
|
2023-07-21 18:14:22 +02:00
|
|
|
ENTRYPOINT ["/app/app.py"]
|
2023-07-19 21:41:48 +02:00
|
|
|
|
|
|
|
# cron fehlt
|