docker: add missing libsdl2-image-dev
[nit.git] / misc / docker / full / Dockerfile
1 # This is a full install of Nit on a debian base.
2 # Full because most dependencies are installed so that most tests can be run
3
4 FROM nitlang/nit:latest
5 MAINTAINER Jean Privat <jean@pryen.org>
6
7 # Dependencies for more libs and tests
8 RUN dpkg --add-architecture i386 \
9         && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
10                 # Packages needed for lib/
11                 libcurl4-openssl-dev \
12                 libegl1-mesa-dev \
13                 libevent-dev \
14                 libgles1-mesa-dev \
15                 libgles2-mesa-dev \
16                 libgtk-3-dev \
17                 libncurses5-dev \
18                 libpq-dev \
19                 libsdl-image1.2-dev \
20                 libsdl-ttf2.0-dev \
21                 libsdl1.2-dev \
22                 libsdl2-dev \
23                 libsdl2-image-dev \
24                 libsqlite3-dev \
25                 libx11-dev \
26                 libxdg-basedir-dev \
27                 postgresql \
28                 # Packages needed for contrib, platforms and FFI
29                 ant \
30                 clang \
31                 default-jdk \
32                 file \
33                 inkscape \
34                 libopenmpi-dev \
35                 unzip \
36                 # Android
37                 libc6:i386 \
38                 libstdc++6:i386 \
39                 zlib1g:i386 \
40                 # TODO neo4j emscripten test_glsl_validation
41         && rm -rf /var/lib/apt/lists/*
42
43 # Install android sdk/ndk
44 RUN mkdir -p /opt \
45         && cd /opt \
46         # Android SDK
47         && curl https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz -o android-sdk-linux.tgz \
48         && tar xzf android-sdk-linux.tgz \
49         && rm android-sdk-linux.tgz \
50         && echo y | android-sdk-linux/tools/android update sdk -a --no-ui --filter \
51                 # Hardcode minimal known working things
52                 platform-tools,build-tools-22.0.1,android-22,android-10 \
53         # Android NDK
54         && curl http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip -o android-ndk.zip \
55         && unzip -q android-ndk.zip \
56         && ln -s android-ndk-r11c android-ndk \
57         && rm android-ndk.zip \
58         && printf "PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK\nexport PATH\n" >> "/etc/profile.d/android.sh"
59
60 # Setup environment variables
61 ENV ANDROID_HOME /opt/android-sdk-linux
62 ENV ANDROID_NDK /opt/android-ndk
63 ENV PATH $PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK