Sayed121 commited on
Commit
5c0144b
·
verified ·
1 Parent(s): 4fc16bc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -55,7 +55,7 @@ COPY --chown=user . $HOME/app
55
 
56
  # Mount the secret and set it as an environment variable
57
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
58
- bash -c 'echo "export OPENAI_API_KEY=$(cat /run/secrets/OPENAI_API_KEY)" >> ~/.bashrc'
59
 
60
  # Make port 7860 available to the world outside this container
61
  EXPOSE 7860
 
55
 
56
  # Mount the secret and set it as an environment variable
57
  RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
58
+ bash -c 'cat /run/secrets/OPENAI_API_KEY > /run/secrets/OPENAI_API_KEY_FILE && echo "export OPENAI_API_KEY=$(cat /run/secrets/OPENAI_API_KEY_FILE)" >> ~/.bashrc'
59
 
60
  # Make port 7860 available to the world outside this container
61
  EXPOSE 7860