Revamp directory structure and Dockerfile to streamline install
kx1t opened this issue · 4 comments
Park install files directly in /rootfs so they don't need to get copied in place
Add a prebuilt install of socket30003 rather than GIT CLONEing it
To be resolved once intensive feature dev phase calms down a bit
Comments from Feb-25-2021 Discord chat with @fredclausen:
[10:13 AM] fredclausen: Glancing through your docker file I think you could do things in a different order. Like when you run the COPY command for planefence / plane-alert, why not do that at the end? Have those already set up in a rootfs directory in the build folder, with the proper pathing for the install (looks like usr/share and etc/services?) Basically I see your run commands are basically all just moving files from the initial build directory in to the container's dir structure
[10:15 AM] fredclausen: If that isn't feasible, then perhaps include a script that runs in cont-init.d that takes the /planefence /planealert directory that moves all of the files in to place
[10:16 AM] fredclausen: Then you just do the RUN command to install the container packages and set everything up, COPY command at the end that copies the stuff you need in to the container, and let the container set it up on startup
Deferring this to the next round of improvements