feat(*): Add Docker support

This commit is contained in:
2021-01-14 18:10:49 +00:00
parent 0d144d18a0
commit bc1f5df804
2 changed files with 53 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM node:14-alpine
ENV NODE_ENV=production
# Create the directory
RUN mkdir -p /usr/src/bot
WORKDIR /usr/src/bot
# Copy the package.json and install the packages
COPY package.json /usr/src/bot
RUN npm install
# Copy the bot itself
COPY . /usr/src/bot
# Start the bot
CMD ["node", "index.js"]