mirror of https://github.com/THUDM/ChatGLM-6B
perf add docker deploy
parent
546652e03e
commit
d1f39f7260
|
@ -0,0 +1,10 @@
|
||||||
|
FROM python:3.7
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . /app
|
||||||
|
|
||||||
|
ENV PIP_INDEX_URL https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
|
|
||||||
|
RUN pip install --upgrade pip && \
|
||||||
|
pip install -r requirements.txt --no-cache-dir
|
||||||
|
|
||||||
|
CMD [ "python","web_demo.py" ]
|
|
@ -0,0 +1,6 @@
|
||||||
|
version: '3.9'
|
||||||
|
services:
|
||||||
|
chatglm:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "5000:5000"
|
Loading…
Reference in New Issue