Baphomet is the dedicated bot for nulloctet matrix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
540 B

  1. FROM node:12.14-stretch AS builder
  2. WORKDIR /opt/baphomet
  3. COPY . /opt/baphomet
  4. RUN cd /opt/baphomet \
  5. && npm install \
  6. && npm run build
  7. FROM node:12.14-stretch
  8. WORKDIR /opt/baphomet
  9. COPY . /opt/baphomet
  10. ENV NODE_ENV=production
  11. ENV LOG_LEVEL=warn
  12. RUN rm -rf /opt/baphomet/src \
  13. && mkdir /opt/baphomet/log
  14. COPY --from=builder /opt/baphomet/dist /opt/baphomet/dist
  15. RUN cd /opt/baphomet \
  16. && npm install --only=prod \
  17. && chmod +x entrypoint.sh
  18. ENTRYPOINT [ "./entrypoint.sh" ]
  19. CMD [ "run" ]