docker: add a Dockerfile example
[nit.git] / misc / docker / hello / Dockerfile
1 FROM nitlang/nit
2
3 # Create a workdir
4 RUN mkdir -p /root/work
5 WORKDIR /root/work
6
7 # Copy the source code in /root/work/
8 COPY . /root/work/
9
10 # Compile
11 RUN nitc src/hello.nit --dir . \
12         # Clear disk space
13         && ccache -C
14 # You can also use a Makefile or what you want
15
16 # Say what to run
17 CMD ["./hello"]