docker: add healthcheck

This commit is contained in:
Trianta 2024-11-09 04:37:30 -06:00
parent 452c35c1b0
commit 90c868d9e9

View File

@ -1,6 +1,6 @@
FROM nginx:latest FROM nginx:latest
RUN apt-get update && apt-get install -y nodejs npm RUN apt-get update && apt-get install -y nodejs npm netcat-openbsd
WORKDIR /app WORKDIR /app
@ -20,4 +20,6 @@ COPY src/*.css ./public
RUN cp /app/build/* ./public RUN cp /app/build/* ./public
HEALTHCHECK CMD nc -z 127.0.0.1 80
EXPOSE 80 EXPOSE 80