This commit is contained in:
Joris Bertomeu
2025-08-19 16:24:10 +02:00
commit 6933c25717
7 changed files with 1747 additions and 0 deletions

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM node:22-alpine
RUN addgroup -g 1001 -S nodejs && \
adduser -S nodeuser -u 1001
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production && \
npm cache clean --force
COPY index.js ./
EXPOSE 3000
LABEL maintainer="joris.bertomeu@gmail.com" \
version="1.0" \
description="Gateway ICS pour Home Assistant"
ENV NODE_ENV=production \
PORT=3000
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
CMD ["node", "index.js"]