Add root Dockerfile for Coolify deployment

This commit is contained in:
Vivek 2026-05-31 06:25:23 +00:00
parent 394117dd74
commit a728235882
2 changed files with 20 additions and 0 deletions

4
.dockerignore Normal file
View file

@ -0,0 +1,4 @@
node_modules
.git
.env
webapp/node_modules

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM node:22-alpine
WORKDIR /app
COPY webapp/package.json webapp/package-lock.json ./
RUN npm ci --omit=dev
COPY webapp/src ./src
ENV NODE_ENV=production
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s \
CMD wget --no-verbose --tries=1 --spider http://localhost:3000/health || exit 1
CMD ["node", "src/server.js"]