voidbot/Dockerfile

8 lines
237 B
Docker
Raw Permalink Normal View History

FROM node:18
2023-02-10 04:25:25 +00:00
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/$(date +%Y-%m-%d_%H-%M-%S)-error.txt 1> /logs/$(date +%Y-%m-%d_%H-%M-%S)-status.txt"]