From 8dbf1e564860bd74ba12202026b92a392a28cfe6 Mon Sep 17 00:00:00 2001 From: Vignesh Shetty Date: Sun, 9 Jun 2024 15:51:53 +0530 Subject: [PATCH] Docker file for kafka-ch-api --- kafka-clickhouse/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kafka-clickhouse/Dockerfile diff --git a/kafka-clickhouse/Dockerfile b/kafka-clickhouse/Dockerfile new file mode 100644 index 0000000..b7c2731 --- /dev/null +++ b/kafka-clickhouse/Dockerfile @@ -0,0 +1,18 @@ +FROM node:20-alpine3.19 + +WORKDIR /var/kafka + +COPY package.json ./ +COPY package-lock.json ./ + +RUN npm install + +RUN npm run build + +COPY . . + +# Add a health check to verify the application is running +# HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \ +# CMD curl --fail http://localhost:8080/health || exit 1 + +CMD [ "npm", "run", "start" ]