diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..cc2f0dc --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..020a9db --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.9' +services: + chatglm: + build: . + ports: + - "5000:5000" \ No newline at end of file