Skip to content

Commit

Permalink
Added health checks and expose ports
Browse files Browse the repository at this point in the history
  • Loading branch information
qtsathish committed Mar 28, 2021
1 parent ac03916 commit 88a7731
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Mar21/Apache/Dockerfile
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM ubuntu:18.04 FROM ubuntu:18.04
LABEL author="khaja ibrahim" LABEL author="khaja ibrahim"
LABEL organization="QualityThought" LABEL organization="QualityThought"
RUN apt update && apt-get install apache2 -y RUN apt update && apt-get install apache2 -y && apt install curl -y
USER www-data HEALTHCHECK CMD curl -f http://localhost/ || exit 1
CMD ["whoami"] EXPOSE 80
CMD ["apache2ctl", "-D", "FOREGROUND"]

0 comments on commit 88a7731

Please sign in to comment.