Files
request-bot/Dockerfile
2024-05-17 10:18:54 +03:00

14 lines
251 B
Docker

# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY . .
RUN npm ci
RUN npm run build
# Run stage
FROM node:20-alpine AS runner
COPY --from=builder /app/build .
COPY --from=builder /app/node_modules ./node_modules
CMD ["node", "index.js"]