silvanus/Dockerfile
2023-06-03 15:02:31 -04:00

10 lines
341 B
Docker
Executable File

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/silvanus.err 1> /logs/silvanus.log"]
CMD ["/bin/sh", "-c", "node main.js 2> /logs/silvanus-stderr-$(date +%Y-%m-%d_%H-%M-%S).log 1> /logs/silvanus-stdout-$(date +%Y-%m-%d_%H-%M-%S).log"]