Update Dockerfile#36
Conversation
matburt
left a comment
There was a problem hiding this comment.
I think we're going to need to find a better way to propogate the code into the image than adding the dev directory.
04776d5 to
129674f
Compare
|
@matburt I've updated the PR to remove the |
|
I found that running |
|
The problem is you're adding the entire dev directory to the image, which would include the .git directory. The goal of this dockerfile is to generate a functional production image of Receptor so we need to generate a whl or something and install it into this. |
129674f to
071e641
Compare
|
@matburt I was adding the entire git repo and then removing afterwards but I get your concern. I've update the PR to add the Also I've removed the dnf update which is generating a smaller image. I can add it back in case anyone things that is important to get the most updated RPM packages. |
|
We probably do need that DNF update... what's the size delta after that? |
|
The image was updated recently (about an hour ago) and therefore there is no difference anymore, it was 80MB more before. See below for the generated image size without the And with the I'll update the PR with the |
Do the following: * Use Fedora 30 as the base image * Install receptor from source rather than wheel * Set /var/lib/receptor as the home directory for receptor
071e641 to
548863c
Compare
|
Another change that I've made was to use the recent released Fedora 31 image and that is giving a smaller image: |
matburt
left a comment
There was a problem hiding this comment.
This looks good. We may still need to tweak the mechanism for getting the right dist into the image but this is good under a make clean && make image workflow.
Do the following: