diff --git a/Dockerfile b/Dockerfile
index 9950107a3edff3b77b71f9be4f1e8cf443d838b4..3d33b6bc64030a713dbe60e82b43ece9a36c94c5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -33,7 +33,23 @@ RUN apk add cmake openssl-dev && \
 	make -j4 CFLAGS="-fPIC -O3" install && \
 	cd ../../ && rm -rf libzip-1.6.1*
 
+## libRmath.a
 
+RUN apk update
+RUN \
+    apk add curl-dev
+
+RUN \
+    git clone https://github.com/SurajGupta/r-source/ && \
+    cd r-source && chmod 755 ./configure && \
+    ./configure -with-readline=no --with-x=no --disable-s3 --with-libdeflate && \
+    cd src/nmath/standalone && make && \
+    make install 
+
+RUN \
+    cd / && cp /r-source/src/nmath/standalone/libRmath.a /usr/local/lib/ && \
+    cp /r-source/src/nmath/standalone/libRmath.so /usr/local/lib/
+ 
 ENV PATH=:/root/.nimble/bin:/nim/bin/:$PATH	
 
 RUN \
@@ -48,12 +64,15 @@ RUN \
     make -j4 CFLAGS="-fPIC -O3" install && \
     cd ../ && rm -rf htslib bcftools
 
+ENV HTSLIB=system
+ENV PATH=$PATH:~/.cargo/bin/
+
 ADD . /src/
 
 RUN nimble install -y https://gitlab.svi.edu.au/biocellgen-public/sscocaller.git
 
 RUN ls ~/.nimble/lib/
-ENV LD_LIBRARY_PATH=:/root/.nimble/lib/:$LD_LIBRARY_PATH
+ENV LD_LIBRARY_PATH=:/root/.nimble/lib/:/usr/local/lib/:$LD_LIBRARY_PATH
 
 RUN cp /root/.nimble/bin/sscocaller /usr/bin/
 
diff --git a/src/sscocaller b/src/sscocaller
new file mode 100755
index 0000000000000000000000000000000000000000..7c0ad638d132545d6386b80846a97fbf26dac6a3
Binary files /dev/null and b/src/sscocaller differ