fascinus/Dockerfile

8 lines
207 B
Docker
Raw Normal View History

2023-10-02 02:14:35 +00:00
FROM node:14
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
COPY package*.json ./
USER node
RUN npm i
COPY --chown=node:node . .
2023-10-02 02:14:35 +00:00
CMD [ "node", "bot.js" ]