fix: pin alpine version to 3.18 and add healthchecks

This commit is contained in:
Rainer Killinger
2024-03-06 11:45:40 +01:00
parent d36d9596fc
commit 689ac68be3
7 changed files with 17 additions and 3 deletions

View File

@@ -9,4 +9,6 @@ ENV NODE_ENV=production
WORKDIR /app
EXPOSE 3000
HEALTHCHECK --interval=10s --timeout=10s --start-period=10s --retries=12 CMD curl -s --fail --request POST --data '{}' --header 'Content-Type: application/json' http://localhost:3000/ >/dev/null || exit 1
ENTRYPOINT ["node", "app.js"]