From 126f88da1a02a6184c4b980ef21c39bb67795ba1 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Wed, 8 Nov 2023 15:53:22 +0100 Subject: [PATCH] move to alpine --- Dockerfile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index d1c469c..8b785f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,11 @@ -FROM ubuntu:focal +# hadolint ignore=DL3007 +FROM alpine:latest -# 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/* +# hadolint ignore=DL3018 +RUN apk add --no-cache \ + git \ + openssh-client \ + iputils-ping # Copy the script into the container COPY app.sh /app/app.sh