Dockerfile 285 B

12345678910111213
  1. FROM node:16 as builder
  2. WORKDIR /build
  3. COPY . .
  4. RUN npm install
  5. FROM node:16-alpine
  6. WORKDIR /build
  7. COPY --from=builder /build /build
  8. RUN npm install [email protected] # https://github.com/TryGhost/node-sqlite3/issues/1581
  9. RUN npm install pm2 -g
  10. EXPOSE 3000
  11. CMD ["pm2-runtime", "app.js"]