dockerize

This commit is contained in:
Chris Ham
2024-02-27 18:27:31 -08:00
parent 30f8307551
commit abdc894359
6 changed files with 339 additions and 236 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# Use the official Node.js image as the base image
FROM node:14
# Set the working directory inside the container
WORKDIR /app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install the dependencies
RUN npm install
# Copy the rest of the application code to the working directory
COPY . .
# Start the bot
CMD [ "node", "index.js" ]