Added docker compatibility

This commit is contained in:
DJj123dj
2024-10-06 21:17:32 +02:00
parent 56e1fb3939
commit 4e10cba203
3 changed files with 29 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
# Docker File for Open Ticket v4
# Use the official Node.js 18 image from Docker Hub
FROM node:18-alpine
# Set a different working directory inside the container
WORKDIR /usr/src/openticket
# Copy package.json and package-lock.json into the container
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of your app's source code into the container
COPY . .
# Run the bot from index.js
CMD ["node", "index.js"]