Skip to content

Commit

Permalink
Docker file for kafka-ch-api
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshshettyin committed Jun 9, 2024
1 parent 38fda63 commit 8dbf1e5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions kafka-clickhouse/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit 8dbf1e5

Please sign in to comment.