replicate / cog

Containers for machine learning
https://cog.run
Apache License 2.0
8.12k stars 563 forks source link

Pass environment variables from cog.yaml to build stage #2060

Open okapusta opened 1 week ago

okapusta commented 1 week ago

Allow to pass environment variables to docker file template during build

Example:

build:
  gpu: false
  environment:
    - ENV_VAR_NAME=some_value
    - SOME_OTHER_VAR=anything_goes
predict: predict.py:Predictor