Skip to content

Commit

Permalink
Docker pls
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlackParade committed Oct 18, 2020
1 parent 1894776 commit 955d402
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 1,300 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
npm-debug.log
.gitignore
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:14
WORKDIR /usr/src/app
COPY . .
RUN npm install
RUN npm run build
RUN npm install -g concurrently
COPY . .

EXPOSE 43594
CMD [ "concurrently", "npm run start:game-server", "npm run start:login-server", "npm run start:update-server" ]
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: '3.8'

services:
nodejs:
build:
context: .
dockerfile: Dockerfile
image: nodejs
container_name: runejs
restart: unless-stopped
ports:
- "43594:43594"
volumes:
- .:/usr/app/
- /usr/app/node_modules
Loading

0 comments on commit 955d402

Please sign in to comment.