Files
test-node/Dockerfile

9 lines
255 B
Docker
Raw Normal View History

2026-03-19 19:44:54 +09:00
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
2026-03-19 19:46:04 +09:00
RUN npm install --omit=dev
2026-03-19 19:44:54 +09:00
COPY . .
EXPOSE 3000
2026-03-19 19:46:04 +09:00
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD wget -qO- http://localhost:3000/health || exit 1
2026-03-19 19:44:54 +09:00
CMD ["node", "server.js"]