From d44789f0efbafb7ec0d1ef79e7697785322b068f Mon Sep 17 00:00:00 2001 From: Trey Pendragon Date: Tue, 28 May 2024 09:03:26 -0700 Subject: [PATCH] Add Docker build & push directions Co-authored-by: Anna Headley Co-authored-by: Eliot Jordan Co-authored-by: Sean Warren Co-authored-by: Shaun Ellis --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 186012a6..0594e317 100644 --- a/README.md +++ b/README.md @@ -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/