Comments (4)
I'm assuming that you are running off of main
as that hasn't been released?
Not documented very well, but --sudo
will make the whole /rails
tree owned by rails
from dockerfile-rails.
No, I'm using 1.2.5
from dockerfile-rails.
It looks like the following does not give ownership over /rails
, just the files in that directory:
COPY --from=build --chown=rails:rails /rails /rails
I'm leaning towards adding an option that does a touch .irb_history
and ensures that it is owned by the rails user. This way I won't have to worry about applications that have an existing .irbrc
file. Thoughts?
from dockerfile-rails.
That would probably work. I'm also thinking that people are likely to mount volumes for the logs directory so they can persist or otherwise retain them. Moving the .irb_history file into that directory would allow that history to be persisted as well (which might be useful for security audits or just convenience). But maybe that's something that could just be documented.
from dockerfile-rails.
Related Issues (20)
- Fly: `--swap` without `--root` lead to permission problems with fly volumes HOT 1
- RAILS_MASTER_KEY as build-time var HOT 2
- Adjust PATH when `--sudo` is specified
- [Suggestion] Prominently warn or error if on arm with no platform specified HOT 3
- Support secrets for a private gemserver HOT 2
- Expose BUNDLE_WITHOUT as ARG to enable building test and production images HOT 1
- Add curl HOT 2
- 1.5.2 Dockerfile breaks on ECS HOT 4
- `--max-idle` option generates corrupted Dockerfile
- `--max-idle=n` should now be added for Puma
- dockerfile_generator.rb:505:in `>=': comparison of Gem::Version with String failed (ArgumentError)
- Install Bun when it is being used instead of Node HOT 17
- Don't default to sqlite3, or provide option to disable? HOT 2
- vendor directory is empty in CI HOT 1
- `packages` directive on `dockerfile.yaml` doesn't install all packages
- replace frozen-lockfile with immutable for yarn >= 2
- [REQ] Is there a plan to support Alpine Linux in `dockerfile-rails` instead of the Debian OS? HOT 7
- Node being installed even if Bun is being used HOT 2
- Error installing psych (5.1.2) when creating DockerFile with Rails 7.1.2
- Order of `COPY` commands doesn't allow for Gemfile's `file` directive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerfile-rails.