heikowagner commited on
Commit
b40fa8d
1 Parent(s): e38cfe9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -11,6 +11,9 @@ RUN ls -la
11
  RUN python run.py
12
  RUN mkdir /.cache
13
  RUN chmod 777 /.cache
 
 
 
14
  CMD ["streamlit", "run", "app.py", "--server.port=7860"]
15
  #CMD ls -la
16
  EXPOSE 7860
 
11
  RUN python run.py
12
  RUN mkdir /.cache
13
  RUN chmod 777 /.cache
14
+ RUN --mount=type=secret,id=OPENAI_API_KEY,mode=0444,required=true \
15
+ cat /run/secrets/OPENAI_API_KEY > /.openaikey
16
+
17
  CMD ["streamlit", "run", "app.py", "--server.port=7860"]
18
  #CMD ls -la
19
  EXPOSE 7860