# Certain packages do not precompile in Julia Docker

**URL:** <https://discourse.julialang.org/t/certain-packages-do-not-precompile-in-julia-docker/115824>\
**Category:** Tooling\
**Tags:** docker, artifacts\
**Created:** [June 18, 2024, 7:54pm UTC](https://discourse.julialang.org/t/certain-packages-do-not-precompile-in-julia-docker/115824 "2024-06-18T19:54:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cirobr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cirobr/32/219994_2.png) [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Post date:** [June 18, 2024, 7:54pm UTC](https://discourse.julialang.org/t/certain-packages-do-not-precompile-in-julia-docker/115824/1 "2024-06-18T19:54:36Z")

</div>

Cheers,

My docker container uses several packages and ran smoothly up to the point I added package `ImageInTerminal` to the environment. Apparently, the container needs an artifact file that is not being pulled/created. Error message follows below. Any hint is appreciated, as well as a brief explanation of what an artifact is. Thanks in advance.

```julia
app-1 | The following 1 direct dependency failed to precompile:
app-1 | 
app-1 | ImageInTerminal [d8c32880-2388-543b-8c61-d9f865259254]
app-1 | 
app-1 | Failed to precompile ImageInTerminal [d8c32880-2388-543b-8c61-d9f865259254] to "/root/.julia/compiled/v1.10/ImageInTerminal/jl_GLbPMd".
app-1 | ERROR: LoadError: InitError: could not load library "/root/.julia/artifacts/3544c0bb3e72c99ebfe976d6ee4072496237241f/lib/libsixel.so"
app-1 | Error loading shared library libjpeg.so.62: No such file or directory (needed by /root/.julia/artifacts/3544c0bb3e72c99ebfe976d6ee4072496237241f/lib/libsixel.so)

```

---

<div class="post-metadata">

**Author:** ![cirobr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cirobr/32/219994_2.png) [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Post date:** [June 20, 2024, 2:44pm UTC](https://discourse.julialang.org/t/certain-packages-do-not-precompile-in-julia-docker/115824/2 "2024-06-20T14:44:01Z")

</div>

Julia Docker based on Linux Alpine misses the package for compilation. Using a Debian version instead, such as bookworm, is a safer path.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [June 20, 2024, 2:55pm UTC](https://discourse.julialang.org/t/certain-packages-do-not-precompile-in-julia-docker/115824/3 "2024-06-20T14:55:40Z")

</div>

You didn’t mention before you were using the Apline image, but you’re likely running into [Problems with musl's ldso on 1.6 · Issue #40556 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/40556)
