Prereq:
- az cli
- npm/nodejs
- docker/docker-compose
Local Build:
- Remove package lock file
- Run "npm install"
- Run "npm run dev" and check the deployment
Build Docker image
- Run "docker build -t levelupwww ."
- Run "docker images" check the image
- Run "docker run -it -p 80:5173 levelupwww" and deploy the image locally on port 80
- Run "az login" to login to Azure
- Run "az acr login --name levelupwww" to log in to container registry
- Run "docker tag levelupwww levelupwww.azurecr.io/levelupwww:latest" to tag the local image
- Run "docker push levelupwww.azurecr.io/levelupwww:latest" to push the latest image