Files
hello-world/Dockerfile
T
host-db 354e691ceb
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
feat: initial hello-world app with CI/CD pipeline
2026-06-20 11:57:31 +02:00

16 lines
334 B
Docker

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