Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompile with defer, invalid Dockerfile #112

Open
SaihttamR opened this issue Aug 24, 2024 · 0 comments
Open

Precompile with defer, invalid Dockerfile #112

SaihttamR opened this issue Aug 24, 2024 · 0 comments

Comments

@SaihttamR
Copy link

Adding the parameter ‘--precompile=defer’ an invalid Dockerfile is created.

$ rails generate dockerfile --precompile=defer
...
Dockerfile:27
--------------------
  25 |     
  26 |     
  27 | >>> FROM prebuild as node
  28 |     
  29 |     # Install JavaScript dependencies
--------------------
ERROR: failed to solve: prebuild: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

I changed line 5 and append "as prebuild" to fix it.

FROM ruby:$RUBY_VERSION-slim as prebuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant