update
This commit is contained in:
parent
14df26ab8f
commit
3a8ac86094
12
Dockerfile
12
Dockerfile
@ -12,13 +12,13 @@ RUN apt-get update && apt-get install -y \
|
||||
# 复制项目文件
|
||||
COPY . /app/
|
||||
|
||||
# 创建虚拟环境, 先判断是否存在
|
||||
RUN if [ ! -d "venv" ]; then \
|
||||
python -m venv venv; \
|
||||
fi
|
||||
# # 创建虚拟环境, 先判断是否存在
|
||||
# RUN if [ ! -d "venv" ]; then \
|
||||
# python -m venv venv; \
|
||||
# fi
|
||||
|
||||
# 激活虚拟环境
|
||||
RUN source venv/bin/activate
|
||||
# # 激活虚拟环境
|
||||
# RUN source venv/bin/activate
|
||||
|
||||
# 安装setuptools
|
||||
RUN pip install setuptools
|
||||
|
||||
Loading…
Reference in New Issue
Block a user