Skip to content

Commit 17be3bb

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 305d149 commit 17be3bb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ EXPOSE $PORT
5454
HEALTHCHECK --interval=30m --timeout=60s --start-period=5s \
5555
CMD ruby -ruri -rnet/http -e ' \
5656
port = ENV.fetch("PORT", "4000") \
57-
token = ENV.fetch("HEALTH_CHECK_TOKEN", "CHANGE_ME_HEALTH_CHECK_TOKEN") \
57+
token = ENV["HEALTH_CHECK_TOKEN"] \
58+
token = "CHANGE_ME_HEALTH_CHECK_TOKEN" if token.nil? || token.empty? \
5859
uri = URI("http://localhost:#{port}/api/v1/health") \
5960
request = Net::HTTP::Get.new(uri) \
6061
request["Authorization"] = "Bearer #{token}" \

0 commit comments

Comments
 (0)