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

FROM node:12.14-stretch AS builder
WORKDIR /opt/baphomet
COPY . /opt/baphomet
RUN cd /opt/baphomet \
&& npm install \
&& npm run build
FROM node:12.14-stretch
WORKDIR /opt/baphomet
COPY . /opt/baphomet
ENV NODE_ENV=production
ENV LOG_LEVEL=warn
RUN rm -rf /opt/baphomet/src \
&& mkdir /opt/baphomet/log
COPY --from=builder /opt/baphomet/dist /opt/baphomet/dist
RUN cd /opt/baphomet \
&& npm install --only=prod \
&& chmod +x entrypoint.sh
ENTRYPOINT [ "./entrypoint.sh" ]
CMD [ "run" ]