voidbot/Dockerfile
Skylar Grant 6fb2a3f4e0
All checks were successful
voidbot Production Dockerization / build (push) Successful in 53s
Add status role menu+heartbeat+impr CI+logging
2023-08-12 22:10:05 -04:00

8 lines
237 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/$(date +%Y-%m-%d_%H-%M-%S)-error.txt 1> /logs/$(date +%Y-%m-%d_%H-%M-%S)-status.txt"]