leezhuuu commited on
Commit
46a86df
1 Parent(s): fefc401

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -36,6 +36,7 @@ COPY . /app
36
  COPY ./model_server.py /app/ # 显式复制
37
  COPY ./web_demo.py /app/ # 显式复制
38
 
 
39
  RUN python -m venv .venv
40
  ENV PATH="/app/.venv/bin:$PATH"
41
  RUN pip install --upgrade pip
@@ -52,8 +53,8 @@ WORKDIR /app
52
  # 从构建阶段复制必要的文件和目录
53
  COPY --from=builder /app/.venv /app/.venv
54
  COPY --from=builder /app/glm-4-Voice-decoder /app/glm-4-Voice-decoder
55
- COPY --from=builder /app/model_server.py /app/ # 显式复制
56
- COPY --from=builder /app/web_demo.py /app/ # 显式复制
57
 
58
 
59
  ENV PATH="/app/.venv/bin:$PATH"
@@ -63,4 +64,4 @@ RUN mkdir -p /app/.cache/huggingface/hub
63
  EXPOSE 8888
64
  EXPOSE 8000
65
 
66
- CMD sh -c "nohup .venv/bin/python model_server.py & .venv/bin/python web_demo.py"
 
36
  COPY ./model_server.py /app/ # 显式复制
37
  COPY ./web_demo.py /app/ # 显式复制
38
 
39
+
40
  RUN python -m venv .venv
41
  ENV PATH="/app/.venv/bin:$PATH"
42
  RUN pip install --upgrade pip
 
53
  # 从构建阶段复制必要的文件和目录
54
  COPY --from=builder /app/.venv /app/.venv
55
  COPY --from=builder /app/glm-4-Voice-decoder /app/glm-4-Voice-decoder
56
+ COPY --from=builder /app/model_server.py /app/
57
+ COPY --from=builder /app/web_demo.py /app/
58
 
59
 
60
  ENV PATH="/app/.venv/bin:$PATH"
 
64
  EXPOSE 8888
65
  EXPOSE 8000
66
 
67
+ CMD sh -c "nohup .venv/bin/python model_server.py & .venv/bin/python web_demo.py"