File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,13 @@ WORKDIR /usr/src/app
3
3
COPY package.json ./
4
4
COPY package-lock.json ./
5
5
6
- RUN npm install
6
+ RUN npm ci
7
7
8
8
COPY src ./src
9
9
COPY tsconfig.json ./
10
+ COPY .babelrc ./
10
11
11
- RUN npm build
12
+ RUN npm run build
12
13
13
14
EXPOSE 43594
14
- CMD [ "npm" , "start" ]
15
+ CMD [ "npm" , "run" , " start:standalone " ]
Original file line number Diff line number Diff line change @@ -2,14 +2,15 @@ version: "3.8"
2
2
3
3
services :
4
4
runejs_game_server :
5
- image : node:16
6
- container_name : runejs_game_server
5
+ build :
6
+ context : .
7
+ dockerfile : Dockerfile
8
+ volumes :
9
+ - ./data:/usr/src/app/data
10
+ - ./cache:/usr/src/app/cache
11
+ - ./config:/usr/src/app/config
7
12
ports :
8
13
- " 43594:43594"
9
- volumes :
10
- - .:/usr/src/service
11
- working_dir : /usr/src/service
12
- command : npm run start
13
14
14
15
networks :
15
16
default :
You can’t perform that action at this time.
0 commit comments