-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added health checks and expose ports
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |