From ba83d085612a4b7337ab0f5a0f5e9b9a48c2e1b0 Mon Sep 17 00:00:00 2001 From: the_booth Date: Wed, 28 Aug 2024 22:38:31 +0200 Subject: [PATCH] Actualiser Dockerfile --- Dockerfile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index f064d95..4feb3ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,12 @@ # Utiliser une image de base debian -FROM debian:12 +FROM image: alpine:3.20.2 # Installation des paquets nécéssaire au bon fonctionnement du Docker -RUN apt-get update -RUN apt-get install -y bind nano wget +RUN apk update +RUN apk add bind nano wget # Installation des paquets recommander au bon fonctionnement du Docker -RUN apt-get install -y curl net-tools apache2 btop +RUN apk add curl net-tools apache2 btop nano - -CMD ["/usr/sbin/sshd", "-D"] - -RUN touch /opt/test/healthly.txt \ No newline at end of file +#Garde le conteneur en vie +CMD ["tail -f /dev/null"] \ No newline at end of file