perf add docker deploy

pull/157/head
ferrym 2023-03-19 17:52:08 +08:00
parent 546652e03e
commit d1f39f7260
2 changed files with 16 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -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" ]

6
docker-compose.yml Normal file
View File

@ -0,0 +1,6 @@
version: '3.9'
services:
chatglm:
build: .
ports:
- "5000:5000"