mirror of
https://github.com/esphome/home-assistant-addon.git
synced 2025-02-20 02:22:09 +01:00
Update devcontainer file (#103)
This commit is contained in:
parent
c5548055ca
commit
6cf2054116
@ -3,7 +3,12 @@ FROM ghcr.io/home-assistant/devcontainer:addons
|
|||||||
RUN \
|
RUN \
|
||||||
apt-get update \
|
apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends \
|
&& apt-get install -y --no-install-recommends \
|
||||||
python3-pip
|
python3-pip \
|
||||||
|
python3-venv
|
||||||
|
|
||||||
|
ENV VIRTUAL_ENV=/opt/venv
|
||||||
|
RUN python3 -m venv $VIRTUAL_ENV
|
||||||
|
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||||
|
|
||||||
COPY script/requirements.txt /
|
COPY script/requirements.txt /
|
||||||
|
|
||||||
|
@ -14,23 +14,28 @@
|
|||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
|
||||||
},
|
},
|
||||||
"extensions": [
|
"customizations": {
|
||||||
"timonwong.shellcheck",
|
"vscode": {
|
||||||
"esbenp.prettier-vscode"
|
"extensions": [
|
||||||
],
|
"timonwong.shellcheck",
|
||||||
"mounts": [
|
"esbenp.prettier-vscode",
|
||||||
"type=volume,target=/var/lib/docker"
|
"ms-python.python"
|
||||||
],
|
],
|
||||||
"settings": {
|
"mounts": [
|
||||||
"terminal.integrated.profiles.linux": {
|
"type=volume,target=/var/lib/docker"
|
||||||
"zsh": {
|
],
|
||||||
"path": "/usr/bin/zsh"
|
"settings": {
|
||||||
|
"terminal.integrated.profiles.linux": {
|
||||||
|
"zsh": {
|
||||||
|
"path": "/usr/bin/zsh"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"terminal.integrated.defaultProfile.linux": "zsh",
|
||||||
|
"editor.formatOnPaste": false,
|
||||||
|
"editor.formatOnSave": true,
|
||||||
|
"editor.formatOnType": true,
|
||||||
|
"files.trimTrailingWhitespace": true
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"terminal.integrated.defaultProfile.linux": "zsh",
|
|
||||||
"editor.formatOnPaste": false,
|
|
||||||
"editor.formatOnSave": true,
|
|
||||||
"editor.formatOnType": true,
|
|
||||||
"files.trimTrailingWhitespace": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user