From 9671090f5bc1da910240f4f86dd5238f364c6281 Mon Sep 17 00:00:00 2001
From: Adam Cheng <52572642+adamchengtkc@users.noreply.github.com>
Date: Mon, 20 Nov 2023 14:18:56 +0000
Subject: [PATCH] TST: docker CI

---
 .devcontainer/Dockerfile        | 2 +-
 .devcontainer/devcontainer.json | 6 ++----
 Dockerfile                      | 2 +-
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 0bd680c..8deb2da 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -25,7 +25,7 @@ RUN DEBIAN_FRONTEND=noninteractive \
         liblzma-dev
 
 RUN useradd  -rm -d /home/vscode -s /bin/bash -g root -G sudo -u 1000 vscode -p ""
-USER 1000
+USER vscode
 WORKDIR /home/vscode
 ENV HOME=/home/vscode
 ENV PATH="/root/.local/bin:$HOME/.local/bin::$PATH"
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index f4f842a..2379a35 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,8 +1,6 @@
 {
-	"name": "poetry3-poetry-pyenv",
-	"build": {
-		"dockerfile": "Dockerfile"
-	},
+	"name": "warmth dolfinx poetry",
+	"image": "ghcr.io/equinor/warmth:latest",
 
 	// 👇 Features to add to the Dev Container. More info: https://containers.dev/implementors/features.
 	// "features": {},
diff --git a/Dockerfile b/Dockerfile
index 0bd680c..8deb2da 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,7 +25,7 @@ RUN DEBIAN_FRONTEND=noninteractive \
         liblzma-dev
 
 RUN useradd  -rm -d /home/vscode -s /bin/bash -g root -G sudo -u 1000 vscode -p ""
-USER 1000
+USER vscode
 WORKDIR /home/vscode
 ENV HOME=/home/vscode
 ENV PATH="/root/.local/bin:$HOME/.local/bin::$PATH"