Add healthcheck
This commit is contained in:
@@ -13,4 +13,7 @@ COPY --from=builder /app/node_modules node_modules/
|
|||||||
COPY package.json .
|
COPY package.json .
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
|
HEALTHCHECK CMD curl --fail http://localhost:3000 || exit 1
|
||||||
|
|
||||||
CMD [ "node", "build" ]
|
CMD [ "node", "build" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user