diff --git a/compile-with-docker.bat b/compile-with-docker.bat
index f66ee6e..f5b1e0a 100644
--- a/compile-with-docker.bat
+++ b/compile-with-docker.bat
@@ -1,5 +1,5 @@
 @echo off
-call clean.bat
+del ".\compiled-firmware\"
 docker build -t uvk5 .
-docker run -v %CD%\compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make clean && make && cp *.bin compiled-firmware/"
+docker run --rm -v %CD%\compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make both && cp *.bin compiled-firmware/"
 pause
diff --git a/compile-with-docker.sh b/compile-with-docker.sh
index 0a78b69..1a92433 100644
--- a/compile-with-docker.sh
+++ b/compile-with-docker.sh
@@ -1,3 +1,4 @@
-#!/bin/sh
-docker build -t uvk5 .
-docker run --rm -v ${PWD}/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make && cp firmware* compiled-firmware/"
\ No newline at end of file
+#!/bin/sh
+rm -rf compiled
+docker build -t uvk5 .
+docker run --rm -v ${PWD}/compiled-firmware:/app/compiled-firmware uvk5 /bin/bash -c "cd /app && make both && cp *.bin compiled-firmware/"
\ No newline at end of file