diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..15b241c1 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,28 @@ +FROM ubuntu:22.04 + +# Avoid interactive prompts during package install +ENV DEBIAN_FRONTEND=noninteractive + +# Install required packages +RUN apt-get update && apt-get install -y \ + build-essential \ + cmake \ + libsqlite3-dev \ + nodejs \ + npm \ + pkg-config \ + libavcodec-dev \ + libavformat-dev \ + libavutil-dev \ + libswscale-dev \ + libcurl4-openssl-dev \ + libmbedtls-dev \ + libcjson-dev \ + libwolfssl-dev \ + libssl-dev \ + && apt-get clean + +# Create a non-root user for VS Code +RUN useradd -m vscode +USER vscode +WORKDIR /home/vscode \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..b470b8ed --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,16 @@ +{ + "name": "Dev Container with Build Tools and Node", + "build": { + "dockerfile": "Dockerfile" + }, + "settings": { + "terminal.integrated.shell.linux": "/bin/bash" + }, + "extensions": [ + "ms-vscode.cpptools", + "dbaeumer.vscode-eslint" + ], + "forwardPorts": [], + "postCreateCommand": "npm install", + "remoteUser": "vscode" +} \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..fcadb2cf --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text eol=lf