dsmultimedika commited on
Commit
e3bc70c
·
1 Parent(s): 4a2b28f

improve docker

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -11,4 +11,4 @@ COPY --chown=user ./requirements.txt requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
 
13
  COPY --chown=user . /app
14
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
11
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
 
13
  COPY --chown=user . /app
14
+ CMD ["python", "-c", "import asyncio; asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy()); import uvicorn; uvicorn.run('app:app', host='0.0.0.0', port=7860)"]