Skylar Grant
0463695323
All checks were successful
Silvanus Production Dockerization / build (pull_request) Successful in 12s
9 lines
189 B
Docker
Executable File
9 lines
189 B
Docker
Executable File
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>&1 > /logs/$(date +%Y-%m-%d_%H-%M-%S).txt"]
|