feat: initial hello-world app with CI/CD pipeline
CI/CD Pipeline / lint-test (push) Failing after 2m5s
CI/CD Pipeline / build-push (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
host-db
2026-06-20 11:57:31 +02:00
parent 8c9bfb64e8
commit 354e691ceb
5 changed files with 139 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM node:22-bookworm-slim
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci --only=production
COPY . .
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
CMD node -e "require('http').get('http://localhost:3000/health', r => {process.exit(r.statusCode === 200 ? 0 : 1)})"
CMD ["node", "index.js"]