Initial commit
This commit is contained in:
12
kapitel10/10_3_9/Dockerfile
Normal file
12
kapitel10/10_3_9/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM debian:11-slim
|
||||
RUN apt-get update && apt-get install -y apache2 \
|
||||
curl \
|
||||
&& apt-get clean
|
||||
ADD --chown=www-data:www-data \
|
||||
http://jackbenny.se/docs/hej-docker.html \
|
||||
/var/www/html/index.html
|
||||
EXPOSE 80/tcp
|
||||
HEALTHCHECK --interval=30s --timeout=3s \
|
||||
--start-period=30s \
|
||||
CMD curl -f http://localhost || exit 1
|
||||
CMD ["apache2ctl", "-D", "FOREGROUND"]
|
Reference in New Issue
Block a user