Making a docker container of my fork? #728
Replies: 1 comment 2 replies
-
Hi @ChrisNolan, I don't think the .dockerignore files are taken in consideration but the multi-steps build ensures that only the required files end up into the final build. I haven't had the chance to document building docs on how to build custom images, but I recommend looking into the existing scripts and files as a starting point but also ask questions here when you need help. Concerning the requirements files, note that the OSS build are created using https://github.com/karrioapi/karrio/blob/main/source.requirements.txt with this approach int the build-from-source karrio/bin/build-server-image-from-source Lines 7 to 13 in da16f32 The other main https://github.com/karrioapi/karrio/blob/main/requirements.txt file is mostly used for dockerless installation (But would also work for a docker build - probably will need git installed in the docker image or at least in an image layer if you do a multi-steps build) |
Beta Was this translation helpful? Give feedback.
-
So I have a fork of the project that I'd like to have my system run off of instead of the 'live' images. I'm really new to the docker side of things but I was trying to just 'build' my version using the 'docker/api/Dockerfile' for example -- but running into issues. I'm wondering what the 'recommended' way to do this is?
One issue is the 'build context' seems to be setup to be from the project root, but the .dockerignore file is in the docker/api/ directory... copying it to root seems to get around some issues -- but then next up 'git' was required by the requirements.txt but that wasn't setup to be installed in the Dockerfile... but then I looked at what git was being used for ... and it was being used to clone the official repo anyway, and not use the local version so that throws the whole idea out the window.
Thoughts? If this is documented already and I've missed it, I'd appreciate a nudge in that direction too.
Beta Was this translation helpful? Give feedback.
All reactions