I got this error when running fly deploy after running fly launch:
Error: failed to fetch an image or build from source: error building: failed to solve: failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = dockerfile parse error on line 27: unknown instruction: rm (did you mean from?)
This is line 27 from the Dockerfile
# Install Node.js
rm -rf /tmp/node-build-master
This made it run without errors
# Install Node.js
RUN rm -rf /tmp/node-build-master
I’ve pushed out a fix in dockerfile-rails v1.5.6. Please try:
bundle update
bin/rails generate dockerfile
The dockerfile generated will have a number of changes (mostly deletions) as compared to the previous one. Let me know if this Dockerfile works for your application.