8 lines
247 B
Docker
8 lines
247 B
Docker
FROM node:18
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY ./src/package.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
CMD ["/bin/sh", "-c", "node src/main.js 2> /logs/$(date +%Y-%m-%d_%H-%M-%S)-error.txt 1> /logs/$(date +%Y-%m-%d_%H-%M-%S)-status.txt"] |