Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
84bd8d5a9f |
@ -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
8
src/Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user