Troubles understanding how to strip unused dependencies from docker images #391
Unanswered
dukeofcool199
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I see
This worked for my case. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Howdy Haskell Flake Peoples,
at this time, i am trying to build a website using hakyll and servant. I have successfully gotten it setup and am able to build docker images with it.
Recently I added tailwindcss to my project using the
tailwind
package on hackage. After adding this dependency, my docker images have grown quite a lot because now it includes the tailwind cli, and nodejs as a part of the package closure.I have tried adding the settings options like
JustStaticExecutables
, and tried adding the package to theremoveReferencesTo
list.I have even tried overriding postInstall build steps on the derivation directly (this just threw a nix error, and this might be showing my lack of knowledge of nix based haskell environments) all to no avail.
Would someone be willing to help guide me on how to remove un-needed dependencies correctly? If so I would really appreciate it.
At this time the code I'm working on is proprietary, if someone needs a reproducible build to help me solve this problem, ask and I will try to make a repo that is close enough to the original to suffice.
Hope everyone is have a great day :)
Beta Was this translation helpful? Give feedback.
All reactions