diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..619b893 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,12 @@ +FROM mcr.microsoft.com/devcontainers/python:3.11 + +# Install Node.js and npm +RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ + && apt-get install -y nodejs + +# Install global tools if needed (optional) +RUN npm install -g serve + +# Set up Python packages early to cache them in Docker layer +COPY requirements.txt /tmp/requirements.txt +RUN pip install --upgrade pip && pip install -r /tmp/requirements.txt diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..3ef51df --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,25 @@ +{ + "name": "Enclov-AI Dev Container", + "dockerFile": "Dockerfile", + + "settings": { + "terminal.integrated.shell.linux": "/bin/bash", + "python.pythonPath": "/usr/local/bin/python", + "editor.formatOnSave": true + }, + + "extensions": [ + "ms-python.python", + "ms-toolsai.jupyter", + "esbenp.prettier-vscode", + "dbaeumer.vscode-eslint", + "formulahendry.auto-close-tag", + "formulahendry.auto-rename-tag" + ], + + "forwardPorts": [3000, 8000, 8501], // React / FastAPI / Streamlit or similar + + "postCreateCommand": "pip install -r requirements.txt && npm install", + + "remoteUser": "vscode" +} diff --git a/frontend/package.json b/frontend/package.json index 9324583..ca28cd3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,7 +9,7 @@ "lint": "next lint" }, "dependencies": { - "next": "13.5.2", + "next": "14.2.30", "react": "18.2.0", "react-dom": "18.2.0" },