Skip to content

Commit

Permalink
build: use npm start in master-dbg docker image (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 authored Dec 11, 2023
1 parent 2098c2e commit e523a29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ EXPOSE 3000
EXPOSE 4200

# Flood server in development mode
ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start:development:server", "--", "--host=0.0.0.0"]
ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start", "--", "--host=0.0.0.0"]

# Then, to start a debugging session of frontend:
# docker exec -it ${container_id} npm --prefix=/usr/src/app/ run start:development:client
Expand All @@ -61,4 +61,4 @@ FROM flood as rtorrent-flood
# Copy rTorrent
COPY --from=rtorrent / /

ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start:development:server", "--", "--host=0.0.0.0", "--rtorrent"]
ENTRYPOINT ["npm", "--prefix=/usr/src/app/", "run", "start", "--", "--host=0.0.0.0", "--rtorrent"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"check-types": "tsc",
"lint": "NODE_ENV=development eslint --max-warnings 0 . --ext .js --ext .jsx --ext .ts --ext .tsx",
"prepack": "rm -rf dist && npm run build",
"start": "node --use_strict dist/index.js",
"start": "node --enable-source-maps --use_strict dist/index.js",
"start:development:client": "node client/scripts/development.js",
"start:development:server": "NODE_ENV=development tsx watch server/bin/start.ts",
"start:test:rtorrent": "node scripts/testsetup.js",
Expand Down

0 comments on commit e523a29

Please sign in to comment.