Add Healthcheck to Dockerfile

This commit is contained in:
Kaindl Network 2023-03-13 20:38:36 +01:00 committed by GitHub
parent 5a290718b6
commit b7781e2bab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,3 +9,6 @@ RUN npm ci
COPY . .
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --quiet --tries=1 --spider http://localhost:3000 || exit 1