From e20e3cb7af3fef42e1550873cd978676a02d37c6 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 7 Dec 2025 01:09:25 -0800 Subject: [PATCH] fix(blockchain-service): add openssl and curl for Prisma and healthcheck --- backend/services/blockchain-service/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/services/blockchain-service/Dockerfile b/backend/services/blockchain-service/Dockerfile index 65f1f012..69926757 100644 --- a/backend/services/blockchain-service/Dockerfile +++ b/backend/services/blockchain-service/Dockerfile @@ -24,6 +24,9 @@ FROM node:20-alpine AS production WORKDIR /app +# Install OpenSSL for Prisma and curl for healthcheck +RUN apk add --no-cache openssl curl + # Copy package files COPY package*.json ./ COPY prisma ./prisma/ @@ -45,7 +48,7 @@ EXPOSE 3012 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://localhost:3012/health || exit 1 + CMD curl -f http://localhost:3012/api/v1/health || exit 1 # Start application CMD ["node", "dist/main.js"]