Spaces:
Runtime error
Runtime error
Annikaijak
commited on
Commit
•
d7a10f5
1
Parent(s):
6efcce1
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
@@ -16,6 +16,9 @@ COPY ./app ./app
|
|
16 |
|
17 |
RUN poetry install --no-interaction --no-ansi
|
18 |
|
19 |
-
EXPOSE
|
20 |
|
21 |
-
|
|
|
|
|
|
|
|
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"]
|