Add docker files

This commit is contained in:
pedrocx486 2025-01-27 22:34:24 -03:00
parent 7d4604cbaf
commit ecb386ca98
2 changed files with 28 additions and 0 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM node:22-alpine
WORKDIR /usr/src/app
COPY package*.json ./
COPY . .
RUN cd client && npm i && npm run build:subfolder && cd ..
RUN cd server && npm i && npm run build
CMD [ "node", "dist/server.js" ]

15
docker-compose.yml Normal file
View file

@ -0,0 +1,15 @@
version: "3.1"
services:
rumor-party-line:
container_name: rumor-party-line
restart: always
build: .
ports:
- '9000:3000'
environment:
PORT: '3000'
CLIENT_URL: 'https://rumor.orangemayhem.net'
MAX_PARTY_LINES: '5'
INITIAL_RUMOR: '...nothing has been said, yet.'
ENVIRONMENT: 'production'