add HEALTHCHECK

This commit is contained in:
ereti
2021-11-08 11:55:08 +00:00
committed by GitHub
parent 461d6afb0f
commit 44a6375adf
+1
View File
@@ -3,4 +3,5 @@ WORKDIR /app
COPY . /app
RUN apt-get update && rm -rf /var/lib/apt/lists/*
RUN npm install -g pnpm && pnpm i
HEALTHCHECK --interval=15s --timeout=5s --start-period=20s CMD curl -f http://localhost/api/v1/status || exit 1
CMD pnpm start