Fix: npm ci to npm install

This commit is contained in:
2026-03-19 19:46:04 +09:00
parent c7690a0fd8
commit 820b3a2d96

View File

@@ -1,9 +1,8 @@
FROM node:20-alpine FROM node:20-alpine
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci --only=production RUN npm install --omit=dev
COPY . . COPY . .
EXPOSE 3000 EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD wget -qO- http://localhost:3000/health || exit 1
CMD wget -qO- http://localhost:3000/health || exit 1
CMD ["node", "server.js"] CMD ["node", "server.js"]