fix(avatar): prevent stale deployment images

This commit is contained in:
stefanfeng
2026-09-09 10:47:18 +08:00
parent 9afc2d5a6c
commit 140ac20281
7 changed files with 228 additions and 21 deletions
+7
View File
@@ -1,5 +1,12 @@
FROM python:3.10-slim
ARG APP_GIT_SHA=unknown
ARG APP_BUILD_TIME=unknown
ENV APP_GIT_SHA=${APP_GIT_SHA} \
APP_BUILD_TIME=${APP_BUILD_TIME}
LABEL org.opencontainers.image.revision=${APP_GIT_SHA} \
org.opencontainers.image.created=${APP_BUILD_TIME}
WORKDIR /app
# 后端依赖(fastapi/uvicorn/sqlalchemy/pypdf/python-docx/openpyxl 等)均为纯 Python wheel,