Skip to content

Commit 2506f11

Browse files
Merge pull request #200 from DefangLabs/jordan/slim-healthchecks
Slim healthchecks
2 parents 3448e1d + 6e89da3 commit 2506f11

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Use the slim version of Node.js on Debian Bookworm as the base image
22
FROM node:20-bookworm-slim
33

4+
RUN apt-get update && apt-get install -y curl
5+
46
# Set the working directory to /app
57
WORKDIR /app
68

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ services:
1111
reservations:
1212
memory: 256M
1313
healthcheck:
14-
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/"]
14+
test: ["CMD", "curl", "-f", "http://localhost:3000/"]

0 commit comments

Comments
 (0)