This commit is contained in:
eric
2026-03-29 03:51:50 -05:00
parent 7cab3f27b8
commit 915412a819
6 changed files with 119 additions and 6 deletions

View File

@@ -24,5 +24,8 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
COPY --from=console /src/web-console/out ./web-console/out
# 构建期尝试拉取 scrcpy-server失败不阻断构建容器启动时 lifespan 会再试)
RUN sh -c "python -m src.scrcpy_vendor || echo '[docker] scrcpy-server: build-time fetch skipped'"
EXPOSE 8101
CMD ["sh", "-c", "exec python -m uvicorn web:app --host 0.0.0.0 --port ${PORT}"]