ambon commited on
Commit
3933a5f
·
verified ·
1 Parent(s): 3aa022a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -30,5 +30,6 @@ RUN python -V
30
 
31
  # CMD pipenv run python update.py
32
  # CMD pipenv run python -m gunicorn main:app -b 0.0.0.0:7860 -w 8 --timeout 600
 
33
 
34
- CMD ["pipenv", "run", "python", "update.py", "&&", "pipenv", "run", "python", "-m", "gunicorn", "main:app", "-b", "0.0.0.0:7860", "-w", "8", "--timeout", "600"]
 
30
 
31
  # CMD pipenv run python update.py
32
  # CMD pipenv run python -m gunicorn main:app -b 0.0.0.0:7860 -w 8 --timeout 600
33
+ CMD ["sh", "-c", "pipenv run python update.py && pipenv run python -m gunicorn main:app -b 0.0.0.0:7860 -w 8 --timeout 600"]
34
 
35
+ # CMD ["pipenv", "run", "python", "update.py", "&&", "pipenv", "run", "python", "-m", "gunicorn", "main:app", "-b", "0.0.0.0:7860", "-w", "8", "--timeout", "600"]