From ae1217c1fe1a8eeded561982799b3cfa92d90534 Mon Sep 17 00:00:00 2001 From: kieranrobson Date: Sun, 15 May 2022 14:55:23 +0100 Subject: [PATCH] Create dockerfile --- dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..b8a59fb --- /dev/null +++ b/dockerfile @@ -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"] \ No newline at end of file