mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-13 07:10:44 +00:00
new dockerfile with gunicorn and wsgi support
This commit is contained in:
parent
ed79ad6b8c
commit
38e2459c7f
@ -15,6 +15,6 @@ ENV FLASK_APP=app.py
|
|||||||
ENV FLASK_DEBUG=true
|
ENV FLASK_DEBUG=true
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5001
|
||||||
|
|
||||||
CMD ["flask", "run", "--host=0.0.0.0"]
|
CMD ["gunicorn", "-w", "6", "--bind", "0.0.0.0:5001", "wsgi:app"]
|
||||||
|
@ -25,6 +25,7 @@ filelock==3.9.0
|
|||||||
Flask==2.2.2
|
Flask==2.2.2
|
||||||
frozenlist==1.3.3
|
frozenlist==1.3.3
|
||||||
greenlet==2.0.2
|
greenlet==2.0.2
|
||||||
|
gunicorn==20.1.0
|
||||||
h11==0.14.0
|
h11==0.14.0
|
||||||
httpcore==0.16.3
|
httpcore==0.16.3
|
||||||
httpx==0.23.3
|
httpx==0.23.3
|
||||||
|
4
application/wsgi.py
Normal file
4
application/wsgi.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
from app import app
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.run()
|
@ -9,4 +9,5 @@ services:
|
|||||||
backend:
|
backend:
|
||||||
build: ./application
|
build: ./application
|
||||||
ports:
|
ports:
|
||||||
- "5001:5000"
|
- "5001:5001"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user