Create dockerfile
parent
287201b354
commit
ae1217c1fe
|
@ -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"]
|
Loading…
Reference in New Issue