diff --git a/build_deps.sh b/build_deps.sh
index a28597c55cdeb4e8b31fd4a439fc97522be43d8f..94613d691b35ce5eef11895260b529f501d00623 100644
--- a/build_deps.sh
+++ b/build_deps.sh
@@ -1,5 +1,3 @@
 #!/bin/bash
-cd mirador-video-annotation
-docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt && npm install && npm run build:es"
-cd ../annotations-plugin
-docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt && npm install && npm run build"
+
+docker run --rm -v $PWD:/opt -it node:12 /bin/sh -c "cd /opt/mirador-video-annotation && npm install && npm run build:es && cd ../annotations-plugin && npm install && npm run build"