start server with waitress
This commit is contained in:
parent
6dcf5d757a
commit
c4800ddf55
@ -6,4 +6,5 @@ RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
|||||||
RUN python3 -m pip install --upgrade pip && pip3 install --upgrade setuptools
|
RUN python3 -m pip install --upgrade pip && pip3 install --upgrade setuptools
|
||||||
COPY . /web-gpt
|
COPY . /web-gpt
|
||||||
RUN pip3 install -r /web-gpt/requirements.txt
|
RUN pip3 install -r /web-gpt/requirements.txt
|
||||||
CMD cd /web-gpt && flask --app=project run --host=0.0.0.0
|
RUN pip3 install waitress
|
||||||
|
CMD cd /web-gpt && waitress-serve --listen 0.0.0.0:5000 project:app
|
@ -45,3 +45,6 @@ def create_app():
|
|||||||
app.register_blueprint(main_blueprint)
|
app.register_blueprint(main_blueprint)
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
|
||||||
|
|
||||||
|
app = create_app()
|
||||||
|
Reference in New Issue
Block a user