Added devcontainer config
authorAdam Dullage <redacted>
Wed, 24 Apr 2024 20:25:23 +0000 (20:25 +0000)
committerAdam Dullage <redacted>
Wed, 24 Apr 2024 20:25:23 +0000 (20:25 +0000)
.devcontainer/Dockerfile [new file with mode: 0644]
.devcontainer/devcontainer.json [new file with mode: 0644]

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644 (file)
index 0000000..c06fc21
--- /dev/null
@@ -0,0 +1,16 @@
+FROM python:3.11-slim-bullseye\r
+\r
+# Install pipenv\r
+RUN pip install --no-cache-dir pipenv\r
+\r
+# Install curl & git\r
+RUN apt update \ && apt install -y \\r
+    curl \\r
+    git \\r
+    && rm -rf /var/lib/apt/lists/*\r
+\r
+# Install Node.js\r
+RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash \\r
+    && export NVM_DIR="$HOME/.nvm" \\r
+    && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \\r
+    && nvm install 20\r
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644 (file)
index 0000000..4acbf5e
--- /dev/null
@@ -0,0 +1,38 @@
+// For format details, see https://aka.ms/devcontainer.json. For config options, see the
+// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
+{
+       "name": "Dev Container",
+       "build": {
+               // Sets the run context to one level up instead of the .devcontainer folder.
+               "context": "..",
+               // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
+               "dockerfile": "./Dockerfile"
+       },
+
+       // Features to add to the dev container. More info: https://containers.dev/features.
+       // "features": {},
+
+       // Use 'forwardPorts' to make a list of ports inside the container available locally.
+       "forwardPorts": [
+               8080
+       ],
+
+       // Uncomment the next line to run commands after the container is created.
+       // "postCreateCommand": "cat /etc/os-release",
+
+       // Configure tool-specific properties.
+       "customizations": {
+               "vscode": {
+                       "extensions": [
+                               "ms-python.python",
+                               "ms-azuretools.vscode-docker",
+                               "ms-python.black-formatter",
+                               "esbenp.prettier-vscode",
+                               "Vue.volar"
+                       ]
+               }
+       }
+
+       // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
+       // "remoteUser": "devcontainer"
+}
git clone https://git.99rst.org/PROJECT