Sfoglia il codice sorgente

Merge pull request #1283 from yubiuser/devcontainer

Add devcontainer
bel2125 9 mesi fa
parent
commit
fe3653c3e0
2 ha cambiato i file con 29 aggiunte e 0 eliminazioni
  1. 13 0
      .devcontainer/Dockerfile
  2. 16 0
      .devcontainer/devcontainer.json

+ 13 - 0
.devcontainer/Dockerfile

@@ -0,0 +1,13 @@
+# syntax=docker/dockerfile:1
+ARG ubuntu_version=24.04
+
+FROM ubuntu:${ubuntu_version}
+RUN apt-get update && \
+    apt-get install --no-install-recommends -y \
+                build-essential \
+                ca-certificates \
+                cmake \
+                clang \
+                git \
+                nano\
+                openssh-server

+ 16 - 0
.devcontainer/devcontainer.json

@@ -0,0 +1,16 @@
+{
+    "name": "Civetweb",
+    "dockerFile": "Dockerfile",
+    "customizations": {
+      "vscode": {
+        "extensions": [
+          "ms-vscode.cpptools",
+          "eamodio.gitlens"
+        ]
+      }
+    },
+    "mounts": [
+      "type=bind,source=/home/${localEnv:USER}/.ssh,target=/root/.ssh,readonly"
+    ]
+  
+  }