hookshot/Dockerfile

8 lines
193 B
Docker
Raw Permalink Normal View History

2024-09-22 17:46:29 +00:00
FROM node:20
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json ./
RUN npm install
COPY . .
CMD ["/bin/sh", "-c", "node src/index.js 2>&1 > /logs/$(date +%Y-%m-%d_%H-%M-%S).txt"]