# Building a Dockerfile with packages

**URL:** https://discourse.julialang.org/t/building-a-dockerfile-with-packages/37272
**Category:** New to Julia
**Tags:** question, docker
**Created:** [April 9, 2020, 10:00am UTC](https://discourse.julialang.org/t/building-a-dockerfile-with-packages/37272 "2020-04-09T10:00:33Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [April 9, 2020, 5:06pm UTC](https://discourse.julialang.org/t/building-a-dockerfile-with-packages/37272/4 "2020-04-09T17:06:01Z")

</div>

This thread might be of interest

> [@Julia packages with Singularity](https://discourse.julialang.org/t/julia-packages-with-singularity/19883/16):
>
> I just encountered the same problems, and I believe I have found a workable solution. First of all, to the command to do the procompilation during build is Base.compilecache, which is a bit particular in that it requires a package identifier as argument, so I found that e.g. Base.compilecache(Base.identify\_package("FileIO")) works to precompile. That being said, for optimal performance the precompilation should probably happen on the system where the container is running, not on the system t…

---

_[View the full topic](https://discourse.julialang.org/t/building-a-dockerfile-with-packages/37272)._
