Skip to content

Commit

Permalink
Updated build script
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Sep 26, 2024
1 parent b772cb5 commit 74b8259
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"types": "dist/index.d.ts",
"type": "module",
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsc",
"start": "node dist/src/server.js",
"dev:start": "cross-env USE_HTTPS=false TESTING_MODE=ENABLED nodemon -I --exec node --experimental-specifier-resolution=node --loader ts-node/esm ./src/server.ts",
"lint": "eslint src --fix",
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ RUN npm install

COPY --chown=node:node backend/ ./

RUN npm run build

# Copy static files from the frontend build
COPY --from=build-frontend /app/frontend/dist/openvidu-call /app/backend/dist/public

RUN npm run build


### Stage 3: Final production image
FROM node:20-alpine as production
Expand Down
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"dev:start": "ng serve --configuration development --port=5080 --host=0.0.0.0",
"dev:build": "./node_modules/@angular/cli/bin/ng.js build --output-path ../backend/public/",
"build": "func() { ./node_modules/@angular/cli/bin/ng.js build --configuration production --base-href=\"${1:-/}\"; }; func",
"build-and-copy": "npm run build && mkdir -p ../backend/dist/public && cp -r dist/openvidu-call/* ../backend/dist/public",
"e2e:all": "tsc --project ./e2e && npx mocha --recursive --timeout 30000 ./e2e/dist/**/*.test.js",
"e2e:home": "tsc --project ./e2e && npx mocha --recursive --timeout 30000 ./e2e/dist/home.test.js",
"e2e:room": "tsc --project ./e2e && npx mocha --recursive --timeout 30000 ./e2e/dist/room.test.js",
Expand Down

0 comments on commit 74b8259

Please sign in to comment.