Simplify GitLab CI Dockerfiles.
[gromacs.git] / admin / dockerfiles / base / Dockerfile
blob25f8a637f8e6b859e3afc3a46ac49be70451404e
1 # Make an image that has the basic dependencies for building GROMACS.
2 # This is the same for all other build images and gets used by those.
4 # Some optional GROMACS dependencies are obtained from the
5 # distribution, e.g.  fftw3, hwloc, blas and lapack so that the build
6 # is as fast as possible.
7 FROM ubuntu:18.04
8 ENV DEBIAN_FRONTEND=noninteractive
9 WORKDIR /tmp
10 RUN \
11   apt-get update && \
12   apt-get -y -q=2 --no-install-suggests --no-install-recommends install \
13     build-essential \
14     ccache \
15     cmake \
16     git \
17     libfftw3-dev \
18     libhwloc-dev \
19     liblapack-dev \
20     moreutils \
21     ninja-build \
22     python3-pip \
23     rsync \
24     wget \
25     xsltproc \
26     && \
27   rm -rf /var/lib/apt/lists/* && \
28   rm -rf /var/cache/apt/archives/*