26 lines
605 B
Docker
26 lines
605 B
Docker
FROM ubuntu:latest
|
|
|
|
# deaktiviert Nachfragen beim installieren von Paketen
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
# Install necessary packages
|
|
RUN apt-get update && \
|
|
apt-get -y --no-install-recommends install git python3 python3-pip && \
|
|
pip install --no-cache-dir paramiko gitpython && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
|
|
|
|
# Copy the script into the container
|
|
COPY app.py /app/app.py
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Make the script executable
|
|
RUN chmod +x app.py
|
|
|
|
# Set the entrypoint to execute the script
|
|
ENTRYPOINT ["/app/app.py"]
|
|
|
|
# cron fehlt
|