diff --git a/docker-compose.yml b/docker-compose.yml index 145d49b..8d6b02f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,8 @@ services: openticket: build: . volumes: - - .:/app - environment: NODE_ENV=production - restart: unless-stopped \ No newline at end of file + - openticket:/home/container + restart: no + container_name: open-ticket +volumes: + openticket: \ No newline at end of file diff --git a/dockerfile b/dockerfile index bca73e3..4a0acad 100644 --- a/dockerfile +++ b/dockerfile @@ -1,9 +1,9 @@ # Docker File for Open Ticket v4 -# Use the official Node.js 18 image from Docker Hub -FROM node:18-alpine +# Use the official Node.js 20 image from Docker Hub +FROM node:20-alpine -# Set a different working directory inside the container -WORKDIR /usr/src/openticket +# Set pterodactyl working directory inside the container +WORKDIR /home/container # Copy package.json and package-lock.json into the container COPY package*.json ./