diff --git a/Dockerfile b/Dockerfile
index 6bd34506311d269e6281fc0c6683ff9c607c03dd..02fec5ab11baa78b5924fb07faa1d81f2e42144d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,14 +2,27 @@ FROM alpine:3.16
 
 # QEMU-Dependencies
 RUN apk update; \
-    apk add qemu qemu-img qemu-system-x86_64 \
-    # Install Dependencies
-    # Install build-essentials equivalent
-    # https://packages.ubuntu.com/jammy/build-essential
-    gcc g++ make libc-dev \
-    # Install other sweb Dependencies
-    python3 py3-pip cmake; \
+    \
+    apk add --virtual .build-deps \
+      # Install build dependencies 
+      py3-pip \
+    ; \
+    apk add \
+      qemu \
+      qemu-img \
+      qemu-system-x86_64 \
+      # Install Dependencies
+      # Install build-essentials equivalent
+      # https://packages.ubuntu.com/jammy/build-essential
+      gcc \
+      g++ \
+      make \
+      libc-dev \
+      # Install other sweb Dependencies
+      python3 \
+      cmake \
+    ; \
     pip install swet==0.0.6 --extra-index-url https://gitlab.tugraz.at/api/v4/projects/21215/packages/pypi/simple; \
-    apk del py3-pip
+    apk del --no-network .build-deps;
 
 WORKDIR /sweb