Files
Inventory-Manager-CC/web/server/Dockerfile

18 lines
282 B
Docker

# Node.js backend
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
EXPOSE 3001
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget --spider -q http://localhost:3001/api/health
CMD ["node", "server.js"]