Improved dockerfile & compose
This commit is contained in:
+5
-3
@@ -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
@@ -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 ./
|
||||||
|
|||||||
Reference in New Issue
Block a user