Dockerfile 342 B

123456789101112131415161718192021222324
  1. FROM node:14-alpine
  2. RUN apk --no-cache add make
  3. WORKDIR /app/bot
  4. COPY ./bot/package.json .
  5. RUN npm install
  6. WORKDIR /app/shared
  7. COPY ./shared/package.json .
  8. RUN npm install
  9. WORKDIR /app
  10. COPY ./bot bot
  11. COPY ./shared shared
  12. COPY ./Makefile Makefile
  13. RUN make build_bot
  14. WORKDIR /app/bot
  15. EXPOSE 3000
  16. CMD npm run start