Add Healthcheck to Dockerfile
This commit is contained in:
parent
5a290718b6
commit
b7781e2bab
1 changed files with 3 additions and 0 deletions
|
@ -9,3 +9,6 @@ RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||||
|
CMD wget --quiet --tries=1 --spider http://localhost:3000 || exit 1
|
||||||
|
|
Loading…
Reference in a new issue