diff --git a/Dockerfile b/Dockerfile
index 2e25392e13d82ae826be91706f439a9d0ac3c740..9edbd24c7eb3246cb801ef90a020e5da64363d43 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,9 +4,8 @@ MAINTAINER Florian Thöni <florian.thoni@floth.fr>
 ENV DEBIAN_FRONTEND noninteractive
 
 RUN apt-get update; \
-   apt-get install -y build-essential && \
+   apt-get install -y build-essential curl && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 
 RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
-RUN source "~/.nvm/nvm.sh"
-RUN nvm install 6
\ No newline at end of file
+RUN . "~/.nvm/nvm.sh" && nvm install 6
\ No newline at end of file