fix(blockchain-service): add openssl and curl for Prisma and healthcheck
This commit is contained in:
parent
9eb2d5a206
commit
e20e3cb7af
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue