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"]