👷 Add production command to package.json & run in Dockerfile
continuous-integration/drone/push Build is passing Details

tutorial
Alix JEUDI--LEMOINE 2 weeks ago
parent c95681a553
commit 8571b7a958

@ -13,5 +13,5 @@ RUN npm install
# Expose port # Expose port
EXPOSE 80 EXPOSE 80
# Start the application with ng serve # Start the application
CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "80", "--configuration=production"] CMD [ "npm", "run", "production" ]

@ -6,7 +6,8 @@
"start": "ng serve", "start": "ng serve",
"build": "ng build", "build": "ng build",
"watch": "ng build --watch --configuration development", "watch": "ng build --watch --configuration development",
"test": "ng test" "test": "ng test",
"production": "ng serve --host 0.0.0.0 --port 80 --configuration=production"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {

Loading…
Cancel
Save