# minimal docker image with paraview

**URL:** https://discourse.paraview.org/t/minimal-docker-image-with-paraview/7424
**Category:** ParaView Support
**Created:** [June 16, 2021, 1:24pm UTC](https://discourse.paraview.org/t/minimal-docker-image-with-paraview/7424 "2021-06-16T13:24:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![olesenm](https://discourse.paraview.org/user_avatar/discourse.paraview.org/olesenm/32/17416_2.png) [@olesenm](https://discourse.paraview.org/u/olesenm)
#### Post date: [June 16, 2021, 1:24pm UTC](https://discourse.paraview.org/t/minimal-docker-image-with-paraview/7424/1 "2021-06-16T13:24:14Z")

</div>

I was exploring add a simple paraview layer onto a docker (ubuntu) image using the laziest approach that I can think of, which is to simply copy and install the ParaView Linux binary into a container and then setup the PATH accordingly.

Of course a few extra libraries (GL, mesa etc) are missing and need to be added in. I think that I have the correct ones:

```auto
COPY ${PARAVIEW_BINARY}.tar.gz /tmp
RUN (cd /opt && tar -xf /tmp/${PARAVIEW_BINARY}.tar.gz); \
     rm -rf /tmp/${PARAVIEW_BINARY}*tar*;

# Minimum libraries to support ParaView binary
RUN apt-get update \
 && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
    libgl1 libxcursor1 libxfixes3 libxrender1 \
 && rm -rf /var/lib/apt/lists/*

```

Either I’ve taken too much, or the tarfile is still in an intermediate layer or something else, but the final image much larger that I expected or desired: approx. _2.4GB_

Any hints for creating a slimmer image?

Thanks,  
/mark

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [June 16, 2021, 4:33pm UTC](https://discourse.paraview.org/t/minimal-docker-image-with-paraview/7424/2 "2021-06-16T16:33:12Z")

</div>

That makes sense. The ParaView download is about 1.6G when extracted. I would make sure that the binary is actually deleted and that the apt cache is actually removed effectively.

---

<div class="post-metadata">

### Author: ![olesenm](https://discourse.paraview.org/user_avatar/discourse.paraview.org/olesenm/32/17416_2.png) [@olesenm](https://discourse.paraview.org/u/olesenm)
#### Post date: [June 17, 2021, 12:35pm UTC](https://discourse.paraview.org/t/minimal-docker-image-with-paraview/7424/3 "2021-06-17T12:35:59Z")

</div>

Thanks Ben, nice to have some confirmation/hand-holding!
