👷 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 80
# Start the application with ng serve
CMD ["ng", "serve", "--host", "0.0.0.0", "--port", "80", "--configuration=production"]
# Start the application
CMD [ "npm", "run", "production" ]

@ -6,7 +6,8 @@
"start": "ng serve",
"build": "ng build",
"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,
"dependencies": {

Loading…
Cancel
Save