put pip dependency into project dir
This commit is contained in:
parent
ba3d3be2a9
commit
23a575d61b
@ -4,7 +4,6 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/re
|
|||||||
RUN apk add git python3 py3-pip
|
RUN apk add git python3 py3-pip
|
||||||
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
|
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 ./project /web-gpt/project
|
||||||
RUN pip3 install -r /web-gpt/requirements.txt
|
RUN pip3 install -r /web-gpt/project/requirements.txt
|
||||||
RUN pip3 install waitress
|
|
||||||
CMD cd /web-gpt && waitress-serve --listen 0.0.0.0:5000 project:app
|
CMD cd /web-gpt && waitress-serve --listen 0.0.0.0:5000 project:app
|
@ -6,6 +6,7 @@ import logging
|
|||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
import os
|
import os
|
||||||
|
import waitress
|
||||||
|
|
||||||
# init SQLAlchemy so we can use it later in our models
|
# init SQLAlchemy so we can use it later in our models
|
||||||
db = SQLAlchemy()
|
db = SQLAlchemy()
|
||||||
|
@ -4,4 +4,5 @@ flask_sqlalchemy==3.0.3
|
|||||||
openai==0.27.2
|
openai==0.27.2
|
||||||
PyYAML==6.0
|
PyYAML==6.0
|
||||||
SQLAlchemy==2.0.7
|
SQLAlchemy==2.0.7
|
||||||
|
waitress==2.1.2
|
||||||
Werkzeug==2.2.3
|
Werkzeug==2.2.3
|
||||||
|
Reference in New Issue
Block a user