Skip to content

Commit

Permalink
added the instruction for running docker file in readme.md
Browse files Browse the repository at this point in the history
Signed-off-by: captain-Akshay <[email protected]>
  • Loading branch information
captain-Akshay committed Oct 4, 2023
1 parent d451487 commit 842aa2c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,21 @@ npm run build

Generated files of the website go to the `.next` folder.

### Running the Docker image

To run the Docker image, simply run the following command:

### Steps to start server

- `cd` into the repo
- run command `./entrypoint.sh`
- Visit localhost:3000 and the website should be live

### Steps to shutdown this Docker Container

- run `docker ps` get the list of containers running
- take the `container-id` and use the code `docker stop <container-id>`

## Case studies

### Overview
Expand Down
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# Step 1: Build the Docker image
docker build -t async_image -f Dockerfile.dev . && docker run -d -p 3000:3000 async_image
4 changes: 4 additions & 0 deletions entrypoint_production.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# Step 1: Build the Docker image
docker build -t async_prod -f Dockerfile . && docker run -d -p 3000:3000 async_prod

0 comments on commit 842aa2c

Please sign in to comment.