- FROM node:16 as builder
- WORKDIR /build
- COPY . .
- RUN npm install
- FROM node:16-alpine
- WORKDIR /build
- COPY --from=builder /build /build
- RUN npm install [email protected] # https://github.com/TryGhost/node-sqlite3/issues/1581
- RUN npm install pm2 -g
- EXPOSE 3000
- CMD ["pm2-runtime", "app.js"]
|