Skip to content

Commit

Permalink
Merge pull request #53 from alphagov/sengi/faq
Browse files Browse the repository at this point in the history
Mention the `$APP/tmp` workaround in the README.
  • Loading branch information
sengi authored Aug 29, 2023
2 parents f15874a + d2b58fb commit 97ecb65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ FROM ghcr.io/alphagov/govuk-ruby-base:3.0
# your app image steps here
```

## Common problems and resolutions

`ERROR: failed to solve: cannot copy to non-directory: /var/lib/docker/overlay2/.../merged/app/tmp`

Add `tmp/` to your `.dockerignore`. This is necessary because we symlink
`$APP_HOME/tmp` to `/tmp` as a workaround for some badly-behaved gems that
assume they can write to `Path.join(Rails.root, 'tmp')` so that we can run with
`readOnlyRootFilesystem`.


## Managing Ruby versions

Expand Down

0 comments on commit 97ecb65

Please sign in to comment.