diff --git a/.devcontainer/studio/Dockerfile b/.devcontainer/studio/Dockerfile new file mode 100644 index 000000000000..5bf2d4c27d82 --- /dev/null +++ b/.devcontainer/studio/Dockerfile @@ -0,0 +1,22 @@ +#------------------------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See LICENSE file in the project root for license information. +#------------------------------------------------------------------------------------------------------------- + +FROM mcr.microsoft.com/vscode/devcontainers/python:3.10 + +# +# Update the OS and maybe install packages +# +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update \ + && apt-get upgrade -y \ + && apt-get -y install --no-install-recommends build-essential npm \ + && apt-get autoremove -y \ + && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* +ENV DEBIAN_FRONTEND=dialog + +# For docs +RUN npm install --global yarn +RUN pip install pydoc-markdown diff --git a/.devcontainer/studio/devcontainer.json b/.devcontainer/studio/devcontainer.json new file mode 100644 index 000000000000..1d7afb73773f --- /dev/null +++ b/.devcontainer/studio/devcontainer.json @@ -0,0 +1,21 @@ +{ + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "ms-toolsai.jupyter", + "visualstudioexptteam.vscodeintellicode" + ], + "settings": { + "terminal.integrated.profiles.linux": { + "bash": { + "path": "/bin/bash" + } + }, + "terminal.integrated.defaultProfile.linux": "bash" + } + } + }, + "dockerFile": "Dockerfile", + "updateContentCommand": "cd samples/apps/autogen-studio && pip install -e . && sudo npm install -g gatsby-cli && cd frontend && yarn install && yarn build" +}