Fix PATH and WORKDIR with Docker images
authorJean Privat <jean@pryen.org>
Sat, 21 May 2016 05:37:17 +0000 (01:37 -0400)
committerJean Privat <jean@pryen.org>
Sat, 21 May 2016 05:37:17 +0000 (01:37 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

misc/docker/Dockerfile

index d7a3f49..95995bf 100644 (file)
@@ -29,3 +29,7 @@ RUN git clone https://github.com/nitlang/nit.git /root/nit \
        && strip c_src/nitc bin/nit* \
        && ccache -C \
        && rm -rf .git
+
+ENV NIT_DIR /root/nit
+ENV PATH $NIT_DIR/bin:$PATH
+WORKDIR $NIT_DIR