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
+9
View File
@@ -0,0 +1,9 @@
# Docker Compose for Open Ticket v4
version: '3'
services:
openticket:
build: .
volumes:
- .:/app
environment: NODE_ENV=production
restart: unless-stopped
+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"]
+2 -1
View File
@@ -12,8 +12,9 @@ import ansis from "ansis"
*/ */
export interface ODCheckerManagerIds_Default { export interface ODCheckerManagerIds_Default {
"openticket:general":ODChecker, "openticket:general":ODChecker,
"openticket:questions":ODChecker,
"openticket:options":ODChecker, "openticket:options":ODChecker,
"openticket:messages":ODChecker, "openticket:panels":ODChecker,
"openticket:transcripts":ODChecker "openticket:transcripts":ODChecker
} }