-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7ed3b5
commit 4e111da
Showing
3 changed files
with
184 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ WORKDIR /app | |
COPY package*.json ./ | ||
RUN npm install | ||
COPY . . | ||
EXPOSE 3000 | ||
EXPOSE 5173 | ||
CMD ["npm","run","dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
Oops, something went wrong.