From 45547e7010f7192206780cd4198d911aee4358ee Mon Sep 17 00:00:00 2001 From: ANTONYOH <71057360+ANTONYOH@users.noreply.github.com> Date: Wed, 9 Feb 2022 18:54:43 -0500 Subject: [PATCH 1/2] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6845aa00..f3baa29f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: build: # Variable expansion in working_directory not supported at this time # You will need to modify the code below to reflect your github account/repo setup - working_directory: /go/src/github.com/Securing-DevOps/invoicer-chapter2 + working_directory: /go/src/github.com/ANTONYOH/invoicer-chapter2 docker: - image: circleci/golang:1.10 steps: From 6b436f95c3d627017091685cb1be358954aeec56 Mon Sep 17 00:00:00 2001 From: ANTONYOH <71057360+ANTONYOH@users.noreply.github.com> Date: Wed, 9 Feb 2022 20:44:53 -0500 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 7c151bcb..f2d54dcb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,3 +12,4 @@ USER app EXPOSE 8080 WORKDIR /app ENTRYPOINT /app/invoicer +HEALTHCHECK CMD curl --fail http://localhost:8080 || exit 1