Skip to content
Merged
Prev Previous commit
fix: TT-511 fix error when build to production
  • Loading branch information
mikevillarruel committed Feb 10, 2022
commit c07b2aa12932f3add8aaa51565d6c295e05c0d5f
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CMD npm run config && ${HOME}/time-tracker-ui/node_modules/.bin/ng serve --host

FROM development as build
COPY .env .
RUN npm run build
RUN npm run config && npm run build



Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"config": "ts-node ./scripts/setenv.ts",
"preinstall": "npx npm-force-resolutions",
"ng": "ng",
"start": "npm run config && ng serve",
"build": "npm run config && ng build --prod",
"start": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"test-headless": "ng test --browsers ChromeHeadless",
"ci-test": "ng test --no-watch --no-progress --browsers ChromeHeadless",
Expand Down