Skip to content

Commit 3276528

Browse files
committed
fix: use shell syntax for CMD args, switch to wget & ensure installed
1 parent d85a327 commit 3276528

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ ARG GID=1000
4141
RUN apt-get update && apt-get install -y --no-install-recommends \
4242
ca-certificates \
4343
tzdata \
44+
wget \
4445
&& rm -rf /var/lib/apt/lists/*
4546

4647
ENV TZ=Etc/UTC
@@ -65,10 +66,10 @@ ARG PORT=8000
6566
ENV PORT=${PORT}
6667
EXPOSE ${PORT}
6768

68-
# Add health check (using wget since curl isn't in Alpine by default)
69+
# Add health check
6970
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
70-
CMD curl --fail http://localhost:${PORT}/health || exit 1
71+
CMD wget --no-verbose --tries=1 --spider http://localhost:${PORT}/health || exit 1
7172

7273
# Use ENTRYPOINT for the executable and CMD for default arguments
7374
ENTRYPOINT ["/usr/src/app/livecards"]
74-
CMD ["0.0.0.0:${PORT}"]
75+
CMD 0.0.0.0:${PORT}

0 commit comments

Comments
 (0)