# Julia docker image with Plots support

**URL:** <https://discourse.julialang.org/t/julia-docker-image-with-plots-support/33112>\
**Category:** Tooling\
**Tags:** question, plotting, docker\
**Created:** [January 8, 2020, 7:11pm UTC](https://discourse.julialang.org/t/julia-docker-image-with-plots-support/33112 "2020-01-08T19:11:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksamtsak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ksamtsak/32/10585_2.png) [@ksamtsak](https://discourse.julialang.org/u/ksamtsak)\
**Post date:** [January 8, 2020, 7:11pm UTC](https://discourse.julialang.org/t/julia-docker-image-with-plots-support/33112/1 "2020-01-08T19:11:48Z")

</div>

Has anyone built a docker image from the “official” ( [Docker Hub](https://hub.docker.com/_/julia) ) one which successfully builds `Plots` ?

---

<div class="post-metadata">

**Author:** ![ImreSamu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/imresamu/32/20677_2.png) [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Post date:** [January 8, 2020, 8:13pm UTC](https://discourse.julialang.org/t/julia-docker-image-with-plots-support/33112/2 "2020-01-08T20:13:22Z")

</div>

Try this code:

```nohighlight
FROM julia:1.3
# Add Packages based on : https://github.com/JuliaPlots/Plots.jl/blob/master/.travis.yml#L18
RUN apt-get update \
    && apt-get install -y --no-install-recommends \
     at-spi2-core \
     libgtk-3-dev \
     xauth \
     xvfb \
    && rm -rf /var/lib/apt/lists/
RUN julia -e 'using Pkg; Pkg.REPLMode.pkgstr("add Plots;precompile");using Plots'

```

not optimal code; based on Extra Debian packages - need for the travis test.

- [https://github.com/JuliaPlots/Plots.jl/blob/master/.travis.yml#L18](https://github.com/JuliaPlots/Plots.jl/blob/master/.travis.yml#L18)
