nodbot/Dockerfile

8 lines
186 B
Docker
Raw Permalink Normal View History

2024-09-22 16:20:13 +00:00
FROM node:20
2022-03-05 04:29:38 +00:00
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json ./
RUN npm install
COPY . .
2023-02-13 02:17:14 +00:00
CMD ["/bin/sh", "-c", "node main.js 2> /logs/nodbot.error 1> /logs/nodbot.log"]