2023-10-01 22:11:26 -04:00
|
|
|
FROM node:18-alpine3.17
|
2023-10-01 22:11:24 -04:00
|
|
|
RUN mkdir -p /home/node/app/node_modules \
|
|
|
|
&& chown -R node:node /home/node/app
|
2023-10-01 22:11:23 -04:00
|
|
|
WORKDIR /home/node/app
|
|
|
|
USER node
|
|
|
|
COPY --chown=node:node package*.json ./
|
|
|
|
RUN npm i
|
|
|
|
COPY --chown=node:node . .
|
|
|
|
CMD [ "node", "bot.js" ]
|