[n00b] Adding Dockerfiles to existing Python project

I’m new to the world of Balena and Docker. I’m trying to get an existing Python project uploaded and deployed on a Raspberry Pi Zero, but am running into trouble deploying.

I can get the simple-node-server example project uploaded fine, but if I copy that demo repo’s Dockerfile.template into my existing project, I get the following error when trying to deploy (after setting up remote repo’s):

[Error]    Some services failed to build:
[Error]      Service: main
[Error]        Error: Cannot locate specified Dockerfile: Dockerfile
[Error]    Not deploying release.

I’m guessing that there is something else in my existing repo that is causing an issue, but I don’t have a good enough understanding of the Docker ecosystem to debug further.

Can someone provide guidance, or let me know what other info would be helpful in troubleshooting?

Thank you!

Hey @csneath did you make sure to git add the Dockerfile.template that you added in your repo and committed it before running git push balena master?

The full steps should be:

git add Dockerfile.template
git commit -m <Commit message here>
git push balena master

Ket me know if this works

1 Like

I’ve started working backwards and can now get a new repo to build with a new Dockerfile.template.

I’m going to start layering in files and modules from the original project to keep track of what prevents the build from completing.