Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -12,10 +12,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
12 |
COPY . .
|
13 |
|
14 |
# Ustaw zmienną środowiskową dla tokenu
|
15 |
-
ENV HF_API_TOKEN
|
16 |
|
17 |
# Ustaw port
|
18 |
EXPOSE 7860
|
19 |
|
20 |
# Uruchom serwer FastAPI
|
21 |
-
CMD ["uvicorn", "
|
|
|
12 |
COPY . .
|
13 |
|
14 |
# Ustaw zmienną środowiskową dla tokenu
|
15 |
+
ENV HF_API_TOKEN=$HF_API_TOKEN
|
16 |
|
17 |
# Ustaw port
|
18 |
EXPOSE 7860
|
19 |
|
20 |
# Uruchom serwer FastAPI
|
21 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|