From ab249f9ab7f705d82a992de28f598d1b309acd6f Mon Sep 17 00:00:00 2001 From: Alejandro Sanchez Date: Sat, 9 Dec 2023 00:10:25 +0000 Subject: [PATCH] added devcontainer configuration --- .devcontainer/devcontainer.json | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b5143969..56366f7a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,8 @@ { "name": "Python 3", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/python:0-3.11", + "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", + "onCreateCommand": "pip3 install --user -r requirements.txt", "customizations": { "vscode": { @@ -14,10 +15,6 @@ } } - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "pip3 install --user -r requirements.txt", - + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" }