From 18f975086e6dac982b7c2286599b734c96b19dbc Mon Sep 17 00:00:00 2001 From: Steven Harrison Date: Wed, 18 Jun 2025 12:53:16 +0000 Subject: [PATCH] Add devcontainer configuration --- .devcontainer/Dockerfile | 5 +++++ .devcontainer/devcontainer.json | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..01cb6e82 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +FROM mcr.microsoft.com/devcontainers/javascript-node:20 + +# Install Chrome and Firefox +RUN apt-get update && apt-get install -y firefox-esr chromium \ + && apt-get clean && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..3d8e74b0 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,19 @@ +{ + "name": "Stimulus DevContainer", + "build": { + "dockerfile": "Dockerfile" + }, + "postCreateCommand": "yarn install", + "containerEnv": { + "CHROME_BIN": "/usr/bin/chromium" + }, + "customizations": { + "vscode": { + "settings": {}, + "extensions": [ + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode" + ] + } + } +} \ No newline at end of file