diff --git a/docker/Dockerfile b/docker/Dockerfile index 26f4e77..e12d352 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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"] \ No newline at end of file +# Start the application +CMD [ "npm", "run", "production" ] \ No newline at end of file diff --git a/package.json b/package.json index 36afca4..57ab6bb 100644 --- a/package.json +++ b/package.json @@ -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": {