diff --git a/Dockerfile b/Dockerfile
index 9edbd24c7eb3246cb801ef90a020e5da64363d43..9706f61a03109e75be21d05dc7764c6ffd16eb33 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -8,4 +8,4 @@ RUN apt-get update; \
    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 . "~/.nvm/nvm.sh" && nvm install 6
\ No newline at end of file
+RUN bash -c ". ~/.nvm/nvm.sh && nvm install 6"
\ No newline at end of file