Skip to content

Commit

Permalink
Merge pull request #388 from Jameskmonger/fix-docker
Browse files Browse the repository at this point in the history
fix: make Dockerfile work, and make Docker Compose use it
  • Loading branch information
Katilith authored Jan 16, 2023
2 parents 6622b47 + a874299 commit 493098f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ WORKDIR /usr/src/app
COPY package.json ./
COPY package-lock.json ./

RUN npm install
RUN npm ci

COPY src ./src
COPY tsconfig.json ./
COPY .babelrc ./

RUN npm build
RUN npm run build

EXPOSE 43594
CMD [ "npm", "start" ]
CMD [ "npm", "run", "start:standalone" ]
13 changes: 7 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ version: "3.8"

services:
runejs_game_server:
image: node:16
container_name: runejs_game_server
build:
context: .
dockerfile: Dockerfile
volumes:
- ./data:/usr/src/app/data
- ./cache:/usr/src/app/cache
- ./config:/usr/src/app/config
ports:
- "43594:43594"
volumes:
- .:/usr/src/service
working_dir: /usr/src/service
command: npm run start

networks:
default:
Expand Down

0 comments on commit 493098f

Please sign in to comment.