Skip to content

Commit 2ef328b

Browse files
Merge pull request #200 from DefangLabs/jordan/slim-healthchecks
Slim healthchecks
2 parents e31d2cf + 1790a32 commit 2ef328b

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
@@ -14,4 +14,4 @@ services:
1414
reservations:
1515
memory: 256M
1616
healthcheck:
17-
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/"]
17+
test: ["CMD", "curl", "-f", "http://localhost:3000/"]

0 commit comments

Comments
 (0)