jameshwade commited on
Commit
eafdfca
·
1 Parent(s): 14437d9

have secret write to .RenvironA

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -4,7 +4,7 @@ WORKDIR /code
4
 
5
  # Expose the secret OPENAI_API_KEY at buildtime and use its value as an environment variable
6
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
7
- echo "OPENAI_API_KEY=$(cat /run/secrets/OPENAI_API_KEY)" > .env
8
 
9
  # Install stable packages from CRAN
10
  RUN install2.r --error \
 
4
 
5
  # Expose the secret OPENAI_API_KEY at buildtime and use its value as an environment variable
6
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
7
+ echo "OPENAI_API_KEY=$(cat /run/secrets/OPENAI_API_KEY)" >> .Renviron
8
 
9
  # Install stable packages from CRAN
10
  RUN install2.r --error \