Add docker files
This commit is contained in:
parent
7d4604cbaf
commit
ecb386ca98
2 changed files with 28 additions and 0 deletions
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
15
docker-compose.yml
Normal 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'
|
Loading…
Add table
Reference in a new issue