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.

29 lines
665 B

FROM debian:bullseye
LABEL maintainer "user@sii.fr"
# Debian en mode non interactif
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y apache2
# 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
RUN rm -f /var/log/apache2/access.log \
&& ln -s /proc/self/fd/1 /var/log/apache2/access.log
RUN rm -f /var/log/apache2/error.log \
&& ln -s /proc/self/fd/2 /var/log/apache2/error.log
# On indique le port que l'on souhaite exposer
EXPOSE 80
# Le processus start.sh sera lancé au démarrage du conteneur
ENTRYPOINT ["/start.sh"]