Skip to content

Commit

Permalink
HEALTHCHECK
Browse files Browse the repository at this point in the history
  • Loading branch information
buluma authored Dec 21, 2021
1 parent 2850a28 commit 3fe5b35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ubuntu2110/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ RUN rm -f /lib/systemd/system/systemd*udev* \
&& rm -f /lib/systemd/system/getty.target

VOLUME ["/sys/fs/cgroup", "/tmp", "/run"]
CMD ["/lib/systemd/systemd"]
CMD ["/lib/systemd/systemd"]

HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f http://localhost/ || exit 1

0 comments on commit 3fe5b35

Please sign in to comment.