d7a3f49fcd1458cd92b1ec2a46d3bfe948d0ab3e
[nit.git] / misc / docker / Dockerfile
1 # This is a basic install of Nit on a debian base.
2
3 FROM debian:jessie
4 MAINTAINER Jean Privat <jean@pryen.org>
5
6 # Install dependencies
7 RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
8                 # Recomanded builds pakages
9                 build-essential \
10                 ccache \
11                 libgc-dev \
12                 graphviz \
13                 libunwind-dev \
14                 pkg-config \
15                 # Get the code!
16                 git \
17                 ca-certificates \
18                 curl \
19                 # For nit manpages :)
20                 man \
21         && rm -rf /var/lib/apt/lists/*
22
23 # Clone and compile
24 RUN git clone https://github.com/nitlang/nit.git /root/nit \
25         && cd /root/nit \
26         && make \
27         && . misc/nit_env.sh install \
28         # Clean and reduce size
29         && strip c_src/nitc bin/nit* \
30         && ccache -C \
31         && rm -rf .git