diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a742db5f1f104a5abaf41721986786311aea240c..bfa212be3d129384a433021c90086b6bb8ad7a61 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,8 +3,11 @@ include:
   ref: master
   file: devcontainer_images.gitlab-ci.yml
 
-build:
+variables:
+  IMAGE_BASENAME: ${IMAGE_PREFIX}/devcontainer-dotnet
+
+"8.0":
   extends: .build_image_job_template
   variables:
-    IMAGE_BASENAME: ${IMAGE_PREFIX}/devcontainer-dotnet
     IMAGE_NAME: ${IMAGE_BASENAME}:8.0
+    BUILD_ARGS: DOTNET_VERSION=8.0
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index ed4a0aa21642c7e53f0de3c9b673e112c636cc8a..72088065503dac88d521657ef0df1490646307a5 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -4,12 +4,37 @@
     "version": "2.0.0",
     "tasks": [
         {
-            "label": "docker build",
+            "label": "build",
             "command": "docker",
             "args": [
                 "build",
-                "."
-            ]
-        }
-    ]
+                "--build-arg",
+                "DOTNET_VERSION=${input:dotnetVersion}",
+                ".",
+            ],
+        },
+        {
+            "label": "buildx build",
+            "command": "docker",
+            "args": [
+                "buildx",
+                "build",
+                "--build-arg",
+                "DOTNET_VERSION=${input:dotnetVersion}",
+                "--platform",
+                "linux/arm64,linux/amd64",
+                ".",
+            ],
+        },
+    ],
+    "inputs": [
+        {
+            "id": "dotnetVersion",
+            "type": "pickString",
+            "description": "Choose dotnet image version",
+            "options": [
+                "8.0",
+            ],
+        },
+    ],
 }
diff --git a/Dockerfile b/Dockerfile
index 40c7e96fe63e73212e4036984e7819e2bad0d5fc..3760c715d24f8a26673ec504149da745f69c2317 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,6 @@
-FROM mcr.microsoft.com/dotnet/sdk:8.0
+ARG DOTNET_VERSION="8.0"
+
+FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}
 
 ARG USERNAME="vscode"
 ARG USER_UID="1000"