Resources attached to the Road To DevOps tutorial https://blog.noobtoroot.xyz/road-to-devops/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
536 B

FROM debian:stretch
LABEL maintainer "user@sii.fr"
# Debian en mode non interactif
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y apache2 curl
# On copie notre page HTML
COPY index.html /var/www/html/index.html
# On copie notre script de démarrage
COPY start.sh /start.sh
RUN chmod 755 /start.sh
# On indique le port que l'on souhaite exposer
EXPOSE 80
HEALTHCHECK CMD curl --fail http://localhost/ || exit 1
# Le processus start.sh sera lancé au démarrage du conteneur
ENTRYPOINT ["/start.sh"]