From a91b0331921e06f233ddaeea473524709c154658 Mon Sep 17 00:00:00 2001
From: Markus Ostermayer <markus.ostermayer@student.tugraz.at>
Date: Tue, 8 Nov 2022 10:08:53 +0100
Subject: [PATCH] Rewrote dockerfile

---
 Dockerfile | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 6bd3450..02fec5a 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
-- 
GitLab