feat: Container healthcheck

This commit is contained in:
HeshamTB 2023-09-13 16:46:46 +03:00
parent 797d39e847
commit aebdab79b6

View File

@ -17,4 +17,7 @@ COPY --from=builder /build/viddl /app/viddl
RUN chmod +x /app/viddl
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3\
CMD curl -f http://localhost:8080 || exit 1
CMD [ "/app/viddl" ]