Skip to content

Commit

Permalink
Add Docker build & push directions
Browse files Browse the repository at this point in the history
Co-authored-by: Anna Headley <[email protected]>
Co-authored-by: Eliot Jordan <[email protected]>
Co-authored-by: Sean Warren <[email protected]>
Co-authored-by: Shaun Ellis <[email protected]>
  • Loading branch information
5 people committed May 28, 2024
1 parent 6a7bdec commit d44789f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).

## Build & Run Production Docker Image Locally

Build Docker Image: `docker build . -t dpul-collections`

The SECRET_KEY_BASE below is just a filler one for the purpose of testing locally.

Run Docker Image: `docker run -t -p 4000:4000 -e DATABASE_URL='ecto://postgres:@host.docker.internal:5434/database' -e SECRET_KEY_BASE='B8rwzeX3DFLveiJ4cP28lRGc0PWdEr8ZF/hDoPRucw95Nzf2IPnu7lhEB+Yldx6Z' dpul-collections`

## Learn more

* Official website: https://www.phoenixframework.org/
Expand Down

0 comments on commit d44789f

Please sign in to comment.