auto-sync: 2026-04-11 21:36:39
This commit is contained in:
+3
-3
@@ -49,11 +49,11 @@ RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
||||
|
||||
# 分层安装依赖:利用Docker缓存实现差分下载
|
||||
# 第一层:基础依赖 - 大文件、不常变,会被长期缓存
|
||||
COPY requirements/requirements-base.txt .
|
||||
COPY docker/requirements/requirements-base.txt .
|
||||
RUN pip install --no-cache-dir -r requirements-base.txt
|
||||
|
||||
# 第二层:额外依赖 - 小文件、可能频繁变更,只重新下载这一层
|
||||
COPY requirements/requirements-extra.txt .
|
||||
COPY docker/requirements/requirements-extra.txt .
|
||||
RUN pip install --no-cache-dir -r requirements-extra.txt
|
||||
|
||||
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
||||
@@ -68,7 +68,7 @@ RUN mkdir -p /home/vnpy/.config/code-server && echo 'bind-addr: 0.0.0.0:8080
|
||||
|
||||
EXPOSE 8888 8000 8080 2222
|
||||
|
||||
COPY --chown=vnpy:vnpy entrypoint.sh /app/
|
||||
COPY --chown=vnpy:vnpy docker/entrypoint.sh /app/
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
|
||||
COPY --chown=vnpy:vnpy scripts /app/scripts
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user