update
This commit is contained in:
parent
56503ca795
commit
648d5e4945
@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
COPY . /app/
|
COPY . /app/
|
||||||
|
|
||||||
# 安装Python依赖
|
# 安装Python依赖
|
||||||
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --no-cache-dir -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
# 设置环境变量
|
# 设置环境变量
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
@ -22,11 +22,6 @@ ENV PYTHONPATH=/app
|
|||||||
# 创建配置文件目录
|
# 创建配置文件目录
|
||||||
RUN mkdir -p /app/config
|
RUN mkdir -p /app/config
|
||||||
|
|
||||||
# 如果需要从示例配置创建配置文件
|
|
||||||
RUN if [ -f "/app/cryptoai/config/config.example.yaml" ] && [ ! -f "/app/cryptoai/config/config.yaml" ]; then \
|
|
||||||
cp /app/cryptoai/config/config.example.yaml /app/cryptoai/config/config.yaml; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 创建数据目录
|
# 创建数据目录
|
||||||
RUN mkdir -p /app/cryptoai/data /app/logs
|
RUN mkdir -p /app/cryptoai/data /app/logs
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user