Hi, I’m trying to deploy a NodeJS app to fly.io and when I run flyctl deploy
I get the following error. I have added **.vscode/
and **node_modules/
to the .dockerignore
file as well.
I have a few ideas.
-
It might be possible you’re on
/workspace
rather than/workspace/YOURPROJECT
, you need to be on this project root folder to run deployments -
Ensure the .dockerignore lives on the root of your project, adding
node_modules
on a line should be enough
Hey @lubien
- It was running inside
/workspace/PROJECT
. - Adding just
node_modules
and.vscode
to the.dockerignore
file worked.
Thanks a lot!
1 Like