What can I remove from /.julia?

mrufsvold
Wed, 23 Oct 2024 16:17:29 +0000
General Usage

I am trying to build a slim docker image to run an app. I’m using PackageCompiler.jl to build a sysimage (using filter_stdlibs).

I’d like to remove unnecessary files from the .julia file to slim even more. I feel pretty safe removing share/doc and share/julia/test directories, but is there anything else?

1. Can I remove the original sysimage shipped with Julia? If so, am I right to assume that it is saved at lib/julia/libjulia.so?

2. Can I delete stdlib directories from juila/compiled/v1.10/ that I’m confident I’m not using?

3. How about the stdlib source code?

7 posts - 4 participants