Signed-off-by: Sun Ruoxi <sunruoxi@4paradigm.com>
This commit is contained in:
@@ -4,7 +4,9 @@ WORKDIR /workspace
|
|||||||
|
|
||||||
# 复制 requirements.txt 并安装 Python 依赖
|
# 复制 requirements.txt 并安装 Python 依赖
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN apt update && \
|
||||||
|
apt install -y python3-pip
|
||||||
|
RUN pip3 install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# 复制 server.py 到 workspace
|
# 复制 server.py 到 workspace
|
||||||
COPY server.py /workspace/
|
COPY server.py /workspace/
|
||||||
|
|||||||
Reference in New Issue
Block a user