Skip to content

Commit

Permalink
Install pip requirements only if they're present (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomir authored Nov 21, 2023
1 parent f99ab02 commit f6f7896
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
// source repo: https://github.com/dwavesystems/ocean-dev-docker
"image": "docker.io/dwavesys/ocean-dev:latest",

// install repo requirements on create and content update
"updateContentCommand": "pip install -r requirements.txt",
// install repo pip requirements (only if present) on content update
"updateContentCommand": "[ ! -r requirements.txt ] || pip install -r requirements.txt",

// forward/expose container services (relevant only when run locally)
"forwardPorts": [
Expand Down

0 comments on commit f6f7896

Please sign in to comment.