nodbot/Dockerfile
Skylar Grant 3f5cc0a9ff
Some checks failed
NodBot Production Dockerization / build (pull_request) Has been cancelled
Fix exec dir
2024-01-01 15:47:14 -05:00

9 lines
319 B
Docker

FROM node:18
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json ./
RUN npm install
COPY . .
# CMD ["/bin/sh", "-c", "node main.js 2> /logs/nodbot.error 1> /logs/nodbot.log"]
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"]