Camillahannesbo commited on
Commit
0d4e5b7
1 Parent(s): 59ed150
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -16,6 +16,9 @@ COPY ./app ./app
16
 
17
  RUN poetry install --no-interaction --no-ansi
18
 
19
- EXPOSE 8080
20
 
21
- CMD exec uvicorn app.server:app --host 0.0.0.0 --port 8080
 
 
 
 
16
 
17
  RUN poetry install --no-interaction --no-ansi
18
 
19
+ EXPOSE 7860
20
 
21
+ # add secret at built-time
22
+ RUN --mount=type=secret,id=TOGETHER_API_KEY,mode=0444,required=true
23
+
24
+ CMD ["uvicorn", "app.server:app", "--host", "0.0.0.0", "--port", "7860"]