nodbot/Dockerfile

9 lines
319 B
Docker
Raw Normal View History

2023-08-08 18:44:59 +00:00
FROM node:18
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 . .
2024-01-01 20:44:55 +00:00
# CMD ["/bin/sh", "-c", "node main.js 2> /logs/nodbot.error 1> /logs/nodbot.log"]
2024-01-01 20:47:14 +00:00
CMD ["/bin/sh", "-c", "node main.js 2> /logs/$(date +%Y-%m-%d_%H-%M-%S)-error.txt 1> /logs/$(date +%Y-%m-%d_%H-%M-%S)-status.txt"]