clienttarget-python / Dockerfile.node
iDevBuddy
fix: Use npm install --legacy-peer-deps to fix build conflicts
5e5c477
raw
history blame
316 Bytes
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --only=production --legacy-peer-deps
COPY --from=builder /app/dist ./dist
EXPOSE 3000
CMD ["node", "dist/index.js"]