Dockerfile 379 B

1234567891011121314151617181920212223
  1. FROM node:14-alpine AS builder
  2. WORKDIR /app
  3. COPY angular-client/package*.json ./
  4. RUN npm install
  5. COPY angular-client/ ./
  6. RUN npm run build:ssr
  7. FROM node:14-alpine AS runner
  8. WORKDIR /app
  9. ENV NODE_ENV=production
  10. ENV PORT=4000
  11. COPY --from=builder /app/dist ./dist
  12. COPY --from=builder /app/package.json ./package.json
  13. EXPOSE 4000
  14. CMD ["node", "dist/fatboar/server/main.js"]