Move & update

This commit is contained in:
Skylar Grant 2024-01-01 13:55:49 -05:00
parent ac9a59a055
commit b3e2c9e736
2 changed files with 8 additions and 8 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
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"]

View File

@ -1,8 +0,0 @@
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"]