mirror of
https://github.com/jcreek/MupBot.git
synced 2026-07-12 18:33:44 +00:00
feat(*): Add Docker support
This commit is contained in:
+16
@@ -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"]
|
||||
Reference in New Issue
Block a user