Skip to content

Commit

Permalink
ahhhhhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlackParade committed Oct 20, 2020
1 parent 955d402 commit 1753b70
Show file tree
Hide file tree
Showing 12 changed files with 1,124 additions and 149 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM node:14
WORKDIR /usr/src/app
COPY . .
RUN npm install
RUN npm run build
RUN npm install -g concurrently
WORKDIR /app
COPY [ "package.json", "package-lock.json*", "./" ]
RUN npm install --production --silent && mv node_modules ../
COPY . .

EXPOSE 43594
CMD [ "concurrently", "npm run start:game-server", "npm run start:login-server", "npm run start:update-server" ]
RUN npm install -g concurrently
RUN npm start
9 changes: 3 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ version: '3.8'

services:
nodejs:
build:
context: .
dockerfile: Dockerfile
build: ./
image: nodejs
container_name: runejs
restart: unless-stopped
restart: always
ports:
- "43594:43594"
volumes:
- .:/usr/app/
- /usr/app/node_modules
- .:/app
6 changes: 6 additions & 0 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"verbose": true,
"ignore": ["src/plugins/"],
"watch": ["src/"],
"ext": "ts, js"
}
Loading

0 comments on commit 1753b70

Please sign in to comment.