Skip to content

Commit 81b2811

Browse files
committed
chore: Update README.md with revised Docker build and run instructions
1 parent ed55661 commit 81b2811

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,28 @@
2727
1. Clone the repository
2828
2. Run the following command to build the docker image
2929
```bash
30-
docker build -t genocs/genocs-library-docs:1.1.0 .
31-
```
32-
3. Run the following command to run the docker image
33-
```bash
34-
docker run -d -p 1313:80 genocs/genocs-library-docs:1.1.0
35-
```
36-
4. Navigate to localhost:1313 to view the documentation
30+
# build the application release version
31+
npm run build
3732

38-
5. push the image to docker hub
39-
```bash
40-
docker login
33+
# build the docker image
34+
docker build -t genocs/genocs-library-docs .
35+
36+
# tag the image
4137
docker tag genocs/genocs-library-docs genocs/genocs-library-docs:1.1.0
4238
docker tag genocs/genocs-library-docs genocs/genocs-library-docs:latest
4339

40+
# login to docker hub
41+
docker login
42+
43+
# push the image to docker hub
4444
docker push genocs/genocs-library-docs:1.1.0
4545
docker push genocs/genocs-library-docs:latest
4646
```
47-
47+
3. Run the following command to run the docker image on localhost:1613
48+
```bash
49+
docker run -d -p 1613:80 genocs/genocs-library-docs
50+
```
51+
4. Navigate to localhost:1613 to view the documentation
4852

4953

5054
## Acknowledgment

0 commit comments

Comments
 (0)