ci: updated dockerfile

This commit is contained in:
Marvin Zhang
2024-11-24 11:35:21 +08:00
parent 40688ed575
commit cd429d4e05
4 changed files with 9 additions and 14 deletions

View File

@@ -26,3 +26,10 @@ COPY ./docker/bin/* /app/bin
# start backend
CMD ["/bin/bash", "/app/bin/docker-init.sh"]
# frontend port
EXPOSE 8080
# healthcheck for backend
HEALTHCHECK --interval=1m --timeout=3s \
CMD curl -f http://localhost:8000/health || exit 1