Improved dockerfile & compose

This commit is contained in:
DJj123dj
2025-03-12 22:13:00 +01:00
parent e7ad3dd50b
commit 1e159c9bab
2 changed files with 9 additions and 7 deletions
+5 -3
View File
@@ -4,6 +4,8 @@ services:
openticket: openticket:
build: . build: .
volumes: volumes:
- .:/app - openticket:/home/container
environment: NODE_ENV=production restart: no
restart: unless-stopped container_name: open-ticket
volumes:
openticket:
+4 -4
View File
@@ -1,9 +1,9 @@
# Docker File for Open Ticket v4 # Docker File for Open Ticket v4
# Use the official Node.js 18 image from Docker Hub # Use the official Node.js 20 image from Docker Hub
FROM node:18-alpine FROM node:20-alpine
# Set a different working directory inside the container # Set pterodactyl working directory inside the container
WORKDIR /usr/src/openticket WORKDIR /home/container
# Copy package.json and package-lock.json into the container # Copy package.json and package-lock.json into the container
COPY package*.json ./ COPY package*.json ./