Skip to content

Commit

Permalink
dockerisation & instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
donliyanage committed Mar 7, 2024
1 parent a7ed3b5 commit 4e111da
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 146 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
EXPOSE 5173
CMD ["npm","run","dev"]
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
Prereq:
1. az cli
2. npm/nodejs
3. docker/docker-compose

Local Build:
1. Remove package lock file
2. Run "npm install"
3. Run "npm run dev" and check the deployment

Build Docker image
1. Run "docker build -t levelupwww ."
2. Run "docker images" check the image
3. Run "docker run -it -p 80:5173 levelupwww" and deploy the image locally on port 80
4. Run "az login" to login to Azure
5. Run "az acr login --name levelupwww" to log in to container registry
6. Run "docker tag levelupwww levelupwww.azurecr.io/levelupwww:latest" to tag the local image
7. Run "docker push levelupwww.azurecr.io/levelupwww:latest" to push the latest image


Loading

0 comments on commit 4e111da

Please sign in to comment.