Create dockerfile

imgbot
kieranrobson 2022-05-15 14:55:23 +01:00
parent 287201b354
commit ae1217c1fe
1 changed files with 18 additions and 0 deletions

18
dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM node:16.15.0
# Create the directory!
RUN mkdir -p /usr/src/bot
WORKDIR /usr/src/bot
# Copy and Install our bot
COPY package.json /usr/src/bot
RUN npm install
# Our precious bot
COPY . /usr/src/bot
# Start me!
EXPOSE 3002
VOLUME ["latest"]
HEALTHCHECK --interval=60s --timeout=30s --start-period=180s --retries=5 CMD node extra/healthcheck.js
CMD ["node", "index.js"]