diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 47535bc..b3696b4 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,6 @@ -# See here for image contents: https://github.com/microsoft/vscode-dev-containers/blob/v0.191.0/containers/python-3/.devcontainer/base.Dockerfile -# [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6 -ARG VARIANT="3" +# See here for image contents: https://github.com/microsoft/vscode-dev-containers/blob/v0.195.0/containers/python-3/.devcontainer/base.Dockerfile +# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster +ARG VARIANT=3-bullseye FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} # [Optional] Allow the vscode user to pip install globally w/o sudo diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b4fa680..0952928 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,13 +1,15 @@ // For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: -// https://github.com/microsoft/vscode-dev-containers/tree/v0.191.0/containers/python-3 +// https://github.com/microsoft/vscode-dev-containers/tree/v0.195.0/containers/python-3 { "name": "Python 3", "build": { "dockerfile": "Dockerfile", "context": "..", "args": { - // Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9 - "VARIANT": "3", + // Update 'VARIANT' to pick a Python version: 3, 3.9, 3.8, 3.7, 3.6. + // Append -bullseye or -buster to pin to an OS version. + // Use -bullseye variants on local on arm64/Apple Silicon. + "VARIANT": "3-bullseye", // Options "NODE_VERSION": "lts/*" }