Skip to content

Commit

Permalink
Merge pull request #95 from naturalstrings/nanAug26v2
Browse files Browse the repository at this point in the history
updating docker instructions in readme, build and run
  • Loading branch information
nssensalo authored Aug 26, 2024
2 parents bde3a50 + f4a918b commit d3ee67f
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,32 @@

## Run App
<p>This app is dockerized.<br>
To run, make sure you have Docker installed.<br>
You may be prompted for login credentials.Simply pull docker image from the repo with command:<br>
Make sure you have Docker installed and actively running before executing the following commands.<br>

You may be prompted for login credentials or you can run:

```
docker login
```

To get the latest version pull from the main branch.<br>

Build a new docker image locally :<br>

```
docker pull username/palm-and-vine-repo:v1
docker build -t private-repo/palm-and-vine-docker-image:latest
```

Then run the image in a new container instance:<br>
Run the image in a new container instance:<br>

```
docker run -p 5173:5173 palm-and-vine-docker-image:v1
docker run -p 5173:5173 private-repo/palm-and-vine-docker-image:latest
```
Alternatively, you can specify which port you'd like the site routed to and detach mode ( so the container runs in the background and leaves your terminal free for more commands )<br>
Alternatively, you can specify which port you'd like the site routed to on your local host.
And you can specify detach mode ( so the container runs in the background and leaves your terminal free for more commands )<br>

```
docker run -d -p 3000:5173 palm-and-vine-docker-image:v1
docker run -d -p 3000:5173 private-repo/palm-and-vine-docker-image:latest
```

</p>
Expand Down

0 comments on commit d3ee67f

Please sign in to comment.