docker: do not install in /root as it is not accessible to unprivileged user
[nit.git] / misc / docker / hello / Dockerfile
1 FROM nitlang/nit
2
3 # Create a workdir
4 RUN mkdir -p /work
5 WORKDIR /work
6
7 # Copy the source code in /work/
8 COPY . /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"]