Dockerfile.nat 2.07 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
FROM ubuntu:18.04
MAINTAINER Sebastien Dinot <sebastien.dinot@c-s.fr>

ENV DEBIAN_FRONTEND noninteractive

RUN echo "Europe/Paris" > /etc/timezone

# ----------------------------------------------------------------------------
# First stage : install tools (they rarely evolve)
# ----------------------------------------------------------------------------
RUN apt-get update -y \
 && apt-get upgrade -y \
 && apt-get install -y --no-install-recommends \
        ca-certificates \
        curl \
        make \
        cmake \
Sébastien Dinot's avatar
Sébastien Dinot committed
18
        ninja-build \
19 20
        g++ \
        gcc \
Sébastien Dinot's avatar
Sébastien Dinot committed
21 22 23 24
        clang \
        clang-tidy \
        clang-format \
        ccache \
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
        git \
        libtool \
        swig \
        xvfb \
 && rm -rf /var/lib/apt/lists/*

# ----------------------------------------------------------------------------
# Second stage : dependencies (they evolve more often)
# ----------------------------------------------------------------------------
RUN apt-get update -y \
 && apt-get upgrade -y \
 && apt-get install -y --no-install-recommends \
        freeglut3-dev \
        libboost-date-time-dev \
        libboost-filesystem-dev \
        libboost-graph-dev \
        libboost-program-options-dev \
        libboost-system-dev \
        libboost-thread-dev \
        libcurl4-gnutls-dev \
        libexpat1-dev \
        libfftw3-dev \
        libgdal-dev \
        libgeotiff-dev \
        libglew-dev \
        libglfw3-dev \
51
        libgsl-dev \
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
        libinsighttoolkit4-dev \
        libkml-dev \
        libmuparser-dev \
        libmuparserx-dev \
        libopencv-core-dev \
        libopencv-ml-dev \
        libopenmpi-dev \
        libopenthreads-dev \
        libossim-dev \
        libpng-dev \
        libqt5opengl5-dev \
        libqwt-qt5-dev \
        libsvm-dev \
        libtinyxml-dev \
        qtbase5-dev \
        qttools5-dev \
68
        default-jdk \
69 70 71 72 73 74 75
        python-dev \
        python-numpy \
        python-gdal \
        python3-dev \
        python3-numpy \
        python3-gdal \
 && rm -rf /var/lib/apt/lists/*
Sébastien Dinot's avatar
Sébastien Dinot committed
76 77

ENV PATH /usr/lib/ccache:$PATH
78
ENV OTB_USE_SHARK OFF