kopia lustrzana https://git.sr.ht/~tsileo/microblog.pub
Tweak the Dockerfile
rodzic
269c5135c2
commit
f6586eb852
|
|
@ -3,5 +3,4 @@ ADD . /app
|
|||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt
|
||||
ENV FLASK_APP=app.py
|
||||
RUN python -c "import config; config.create_indexes()"
|
||||
CMD ["gunicorn", "-t", "300", "-w", "2", "-b", "0.0.0.0:5005", "--log-level", "debug", "app:app"]
|
||||
CMD ["./run.sh"]
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
python -c "import config; config.create_indexes()"
|
||||
gunicorn -t 300 -w 2 -b 0.0.0.0:5005 --log-level debug app:app
|
||||
Ładowanie…
Reference in New Issue