jedeland commited on
Commit
f2e7322
·
1 Parent(s): e9bff89
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -14,9 +14,8 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
  COPY --chown=user . /app
16
 
17
- # Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
18
- RUN --mount=type=secret,id=SECRET_EXAMPLE,mode=0444,required=true
19
 
20
- ENV $(cat /run/secrets/SECRET_EXAMPLE)
21
 
22
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
14
 
15
  COPY --chown=user . /app
16
 
17
+ RUN --mount=type=secret,id=HOPSWORKS_API_KEY,mode=0444,required=true
 
18
 
19
+ ENV $(cat /run/secrets/HOPSWORKS_API_KEY)
20
 
21
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]