Update devcontainer file (#103)

This commit is contained in:
Jesse Hills 2023-09-11 12:25:16 +12:00 committed by GitHub
parent c5548055ca
commit 6cf2054116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 18 deletions

View File

@ -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 /

View File

@ -14,9 +14,12 @@
"containerEnv": { "containerEnv": {
"WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}" "WORKSPACE_DIRECTORY": "${containerWorkspaceFolder}"
}, },
"customizations": {
"vscode": {
"extensions": [ "extensions": [
"timonwong.shellcheck", "timonwong.shellcheck",
"esbenp.prettier-vscode" "esbenp.prettier-vscode",
"ms-python.python"
], ],
"mounts": [ "mounts": [
"type=volume,target=/var/lib/docker" "type=volume,target=/var/lib/docker"
@ -33,4 +36,6 @@
"editor.formatOnType": true, "editor.formatOnType": true,
"files.trimTrailingWhitespace": true "files.trimTrailingWhitespace": true
} }
}
}
} }