diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..5171c54 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +npm-debug.log \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..348981a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Use an official Node runtime as the parent image +FROM node:18 + +# Set the working directory in the container +WORKDIR /usr/src/app + +# Copy package.json and package-lock.json +COPY package*.json ./ + +# Install dependencies +RUN npm install + +# Copy the rest of your app's source code +COPY . . + +# Your app binds to port 3000 so you'll use the EXPOSE instruction to have it mapped by the docker daemon +EXPOSE 3000 + +# Define the command to run your app +CMD [ "node", "index.js" ] \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 0bca166..ceb87f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,8 @@ "license": "ISC", "dependencies": { "discord.js": "^14.16.2", - "dotenv": "^16.4.5" + "dotenv": "^16.4.5", + "undici": "^6.19.8" } }, "node_modules/@discordjs/builders": { diff --git a/package.json b/package.json index dd714f9..3057fd9 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "description": "", "dependencies": { "discord.js": "^14.16.2", - "dotenv": "^16.4.5" + "dotenv": "^16.4.5", + "undici": "^6.19.8" } }