nodbot/Dockerfile
Skylar Grant b28e193b55
All checks were successful
NodBot Production Dockerization / build (pull_request) Successful in 1m0s
Update to use Node 18 LTS
2023-08-08 14:44:59 -04:00

8 lines
186 B
Docker

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/nodbot.error 1> /logs/nodbot.log"]