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.
 
 

20 lines
657 B

FROM node:22
RUN apt update && apt install curl gnupg -y \
&& curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt update \
&& apt install google-chrome-stable -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /home/node/app && mkdir -p /home/node/app/assets/images
WORKDIR /home/node/app
COPY package*.json ./
COPY botmon.js config.js utils.js ./
RUN npm install
RUN chown -R node:node /home/node/app
EXPOSE 5000
CMD [ "node", "botmon.js" ]