diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..2543799 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,5 @@ +FROM mcr.microsoft.com/devcontainers/typescript-node +RUN echo "deb [trusted=yes] https://packages.twingate.com/apt/ /" | tee /etc/apt/sources.list.d/twingate.list +RUN apt-get update -yq && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install git curl +RUN curl -s https://binaries.twingate.com/client/linux/install.sh | sudo bash \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..32cce9a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,11 @@ +{ + "build": { "dockerfile": "Dockerfile" }, + "runArgs": ["--device=/dev/net/tun"], + "capAdd": ["NET_ADMIN"], + "customizations": { + "vscode": { + "extensions": ["streetsidesoftware.code-spell-checker"] + } + }, + "forwardPorts": [3128] +} diff --git a/index.js b/index.js new file mode 100644 index 0000000..e6e7c98 --- /dev/null +++ b/index.js @@ -0,0 +1,5 @@ +function main() { + console.log('Hello, world!'); +} + +main(); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..da3a307 --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "devcontainer-test", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "start": "node index.js" + }, + "author": "", + "license": "ISC" +}