nodgpt/Dockerfile

8 lines
243 B
Docker
Raw Normal View History

2024-01-01 18:55:49 +00:00
FROM node:18
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
2024-01-01 20:28:54 +00:00
COPY ./package.json ./
2024-01-01 18:55:49 +00:00
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"]