Compare commits

..

1 Commits
main ... dev

Author SHA1 Message Date
84bd8d5a9f MVP 2024-01-01 14:27:10 -05:00
2 changed files with 8 additions and 8 deletions

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 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"]

8
src/Dockerfile Normal file
View File

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