fix: remove web dir from Dockerfile, fix healthcheck path

web/ was deleted in previous refactoring. Healthcheck now uses /health
endpoint instead of /web.
This commit is contained in:
向宁 2026-05-17 22:28:01 +08:00
parent c17d7c2c29
commit 5f3d84a89b

View File

@ -26,12 +26,11 @@ RUN apk add --no-cache wget file
COPY --from=builder /app/server .
RUN chmod +x server
COPY --from=builder /app/web ./web
COPY --from=builder /app/docs ./docs
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/web || exit 1
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1
CMD ["./server"]