CindyDelage commited on
Commit
ed0d1bb
·
verified ·
1 Parent(s): 37f1c40

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -14,10 +14,12 @@ COPY --chown=user ./requirements.txt requirements.txt
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
16
  COPY --chown=user . /app
17
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]
18
- CMD uvicorn app:app --host 0.0.0.0 --port 7860 & \
19
- sleep 5 && \
20
- curl -X POST "http://localhost:7860/audio" \
21
- -H "Content-Type: application/json" \
22
- -d '{"test_size": 0.2, "test_seed": 42}'
 
 
23
 
 
14
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
 
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
+ -H "Content-Type: application/json" \
23
+ -d '{"test_size": 0.2, "test_seed": 42}'
24
+ wait
25