From 06981f2ce2895170ab154dfa578d7598695eef17 Mon Sep 17 00:00:00 2001 From: Ryan W Date: Fri, 24 Mar 2023 12:23:31 -0700 Subject: [PATCH] Add manual build --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d8276c4..90d07c6 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ This app demonstrates Rails 7 with PostgreSQL, import maps, turbo, stimulus and * tests * Rubocop for linting * Security checks with [Brakeman](https://github.com/presidentbeef/brakeman) and [bundler-audit](https://github.com/rubysec/bundler-audit) + * Building and testing of a production Docker image * Dependabot for automated updates ## Requirements @@ -69,8 +70,16 @@ docker compose up --build ## Production build +(adjust tags as needed) + ``` -docker build -f production.Dockerfile . +# to load the built image into local docker images +docker build --tag rails-on-docker --file production.Dockerfile . --load + +or + +# to push the built image +docker build --tag rails-on-docker --file production.Dockerfile . --push ``` ## Deployment