2023-08-02 18:59:51 +02:00
|
|
|
FROM ubuntu:focal
|
2023-07-19 20:46:20 +02:00
|
|
|
|
2023-07-21 18:15:59 +02:00
|
|
|
# deaktiviert Nachfragen beim installieren von Paketen
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2023-07-19 20:46:20 +02:00
|
|
|
# Install necessary packages
|
2023-08-02 18:58:21 +02:00
|
|
|
# hadolint ignore=DL3008
|
2023-07-21 18:14:22 +02:00
|
|
|
RUN apt-get update && \
|
2023-08-04 10:18:51 +02:00
|
|
|
apt-get -y --no-install-recommends install git openssh-client iputils-ping && \
|
2023-07-21 18:17:40 +02:00
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/*
|
2023-07-19 20:46:20 +02:00
|
|
|
|
|
|
|
# Copy the script into the container
|
2023-07-21 20:40:39 +02:00
|
|
|
COPY app.sh /app/app.sh
|
2023-07-19 20:46:20 +02:00
|
|
|
|
|
|
|
# Set the working directory
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# Make the script executable
|
2023-07-21 20:40:39 +02:00
|
|
|
RUN chmod +x app.sh
|
2023-07-19 20:46:20 +02:00
|
|
|
|
|
|
|
# Set the entrypoint to execute the script
|
2023-07-21 20:40:39 +02:00
|
|
|
ENTRYPOINT ["/app/app.sh"]
|