2023-07-19 20:46:20 +02:00
|
|
|
FROM ubuntu:latest
|
|
|
|
|
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:57:40 +02:00
|
|
|
# hadolint ignore=DL3008,DL3007
|
2023-07-21 18:14:22 +02:00
|
|
|
RUN apt-get update && \
|
2023-07-21 20:40:39 +02:00
|
|
|
apt-get -y --no-install-recommends install git openssh-client && \
|
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"]
|