Skip to content

Commit 6f12dc5

Browse files
committed
fix(docker): missing curl installation for health check
Closes #725. Signed-off-by: Gil Desmarais <[email protected]>
1 parent b918342 commit 6f12dc5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@ ENV PORT=3000 \
3535

3636
EXPOSE $PORT
3737

38-
HEALTHCHECK --interval=30m --timeout=60s --start-period=5s \
39-
CMD curl -f http://${HEALTH_CHECK_USERNAME}:${HEALTH_CHECK_PASSWORD}@localhost:${PORT}/health_check.txt || exit 1
38+
HEALTHCHECK --interval=60s --timeout=15s --start-period=5s \
39+
CMD curl -f http://localhost:${PORT}/health_check.txt || exit 1
4040

4141
ARG USER=html2rss
4242
ARG UID=991
4343
ARG GID=991
4444

4545
RUN apk add --no-cache \
46+
'curl>=8' \
4647
'gcompat>=0' \
4748
'tzdata>=2024' \
4849
'libxml2>=2' \

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,6 @@ ensure
7272
sh 'docker stop html2rss-web-test'
7373
sh 'docker rm html2rss-web-test'
7474
end
75+
76+
exit 1 if $ERROR_INFO
7577
end

0 commit comments

Comments
 (0)