Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -16,10 +16,10 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
16 |
COPY --chown=user . /app
|
17 |
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]
|
18 |
#!/bin/sh
|
19 |
-
uvicorn app:app --host 0.0.0.0 --port 7860 --log-level debug &
|
20 |
-
sleep 5
|
21 |
-
curl -X POST "http://localhost:7860/audio" \
|
22 |
-
|
23 |
-
|
24 |
-
wait
|
25 |
|
|
|
16 |
COPY --chown=user . /app
|
17 |
#CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]
|
18 |
#!/bin/sh
|
19 |
+
CMD uvicorn app:app --host 0.0.0.0 --port 7860 --log-level debug & \
|
20 |
+
sleep 5 && \
|
21 |
+
curl -X POST "http://localhost:7860/audio" \
|
22 |
+
-H "Content-Type: application/json" \
|
23 |
+
-d '{"test_size": 0.2, "test_seed": 42}' && \
|
24 |
+
wait
|
25 |
|