FROM ubuntu:focal # deaktiviert Nachfragen beim installieren von Paketen ENV DEBIAN_FRONTEND=noninteractive # Install necessary packages # hadolint ignore=DL3008 RUN apt-get update && \ apt-get -y --no-install-recommends install git openssh-client iputils-ping && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* # Copy the script into the container COPY app.sh /app/app.sh # Set the working directory WORKDIR /app # Make the script executable RUN chmod +x app.sh # Set the entrypoint to execute the script ENTRYPOINT ["/app/app.sh"]