fascinus/Dockerfile

11 lines
397 B
Docker
Raw Normal View History

2023-10-02 13:48:49 +00:00
FROM node:18
2023-10-02 02:14:36 +00:00
RUN apt update && apt install -y python3 python3-pip wget
2023-10-02 02:14:35 +00:00
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
USER node
COPY --chown=node:node lib/banter/requirements.txt .
RUN pip3 install -r requirements.txt --break-system-packages
2023-10-02 02:14:36 +00:00
COPY --chown=node:node package*.json ./
2023-10-02 02:14:35 +00:00
RUN npm i
COPY --chown=node:node . .
2023-10-02 02:14:35 +00:00
CMD [ "node", "bot.js" ]