fix:修复镜像报错
This commit is contained in:
@@ -23,7 +23,7 @@ RUN sed -i "s@deb.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list.d/debian.sou
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt /tmp/local_requirements.txt
|
COPY requirements-edge-dispatch.txt /tmp/local_edge_requirements.txt
|
||||||
COPY app /tmp/local_app
|
COPY app /tmp/local_app
|
||||||
RUN pip config set global.index-url "${PIP_INDEX_URL}" \
|
RUN pip config set global.index-url "${PIP_INDEX_URL}" \
|
||||||
&& pip config set global.trusted-host "${PIP_TRUSTED_HOST}" \
|
&& pip config set global.trusted-host "${PIP_TRUSTED_HOST}" \
|
||||||
@@ -33,13 +33,15 @@ RUN pip config set global.index-url "${PIP_INDEX_URL}" \
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
git clone --depth "${GIT_CLONE_DEPTH}" --branch "${GIT_BRANCH}" "${GIT_REPO_URL}" /tmp/repo; \
|
git clone --depth "${GIT_CLONE_DEPTH}" --branch "${GIT_BRANCH}" "${GIT_REPO_URL}" /tmp/repo; \
|
||||||
cp "/tmp/repo/${GIT_PROJECT_SUBDIR}/requirements.txt" /app/requirements.txt; \
|
cp "/tmp/repo/${GIT_PROJECT_SUBDIR}/requirements-edge-dispatch.txt" /app/requirements.txt; \
|
||||||
cp -r "/tmp/repo/${GIT_PROJECT_SUBDIR}/app" /app/app; \
|
cp -r "/tmp/repo/${GIT_PROJECT_SUBDIR}/app" /app/app; \
|
||||||
|
rm -rf /tmp/repo; \
|
||||||
else \
|
else \
|
||||||
cp /tmp/local_requirements.txt /app/requirements.txt; \
|
cp /tmp/local_edge_requirements.txt /app/requirements.txt; \
|
||||||
cp -r /tmp/local_app /app/app; \
|
cp -r /tmp/local_app /app/app; \
|
||||||
fi \
|
fi \
|
||||||
&& pip install -r /app/requirements.txt
|
&& pip install --no-cache-dir -r /app/requirements.txt \
|
||||||
|
&& rm -rf /tmp/local_app /tmp/local_edge_requirements.txt
|
||||||
|
|
||||||
EXPOSE 8020
|
EXPOSE 8020
|
||||||
|
|
||||||
|
|||||||
8
video_worker/requirements-edge-dispatch.txt
Normal file
8
video_worker/requirements-edge-dispatch.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Minimal deps for app.edge_dispatch_service only (center dispatch container).
|
||||||
|
# Do NOT use the full requirements.txt here — it pulls torch/transformers and fills the disk.
|
||||||
|
fastapi==0.116.1
|
||||||
|
uvicorn[standard]==0.35.0
|
||||||
|
pydantic==2.11.7
|
||||||
|
pydantic-settings==2.10.1
|
||||||
|
python-dotenv==1.1.1
|
||||||
|
oss2==2.18.5
|
||||||
Reference in New Issue
Block a user