# Docker with opam

**URL:** <https://discuss.ocaml.org/t/docker-with-opam/6821>\
**Category:** Ecosystem\
**Tags:** docker, opam\
**Created:** [November 21, 2020, 8:15am UTC](https://discuss.ocaml.org/t/docker-with-opam/6821 "2020-11-21T08:15:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ulrikstrid](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/ulrikstrid/32/1600_2.png) [@ulrikstrid](https://discuss.ocaml.org/u/ulrikstrid)\
**Post date:** [November 21, 2020, 8:15am UTC](https://discuss.ocaml.org/t/docker-with-opam/6821/1 "2020-11-21T08:15:53Z")

</div>

Hello,

I usually use esy for development but I want to get into opam for different reasons (trying flambda more easily, larger userbase etc).

My question is then, how do I build docker containers with opam? Specifically handling depexts for statically linking.

In esy we have a bunch of packages packaged for esy so that they are available in the sandbox which makes it very easy.
