Add manual build

This commit is contained in:
Ryan W
2023-03-24 12:23:31 -07:00
committed by Ryan Williams
parent 49d7e00d2d
commit 06981f2ce2
+10 -1
View File
@@ -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