Compare commits

...

2 Commits

Author SHA1 Message Date
朱潮
84844933b9 Merge branch 'developing' into bot_manager 2026-05-07 23:16:56 +08:00
朱潮
01457b4ffb Dockerfile.modelscope 2026-05-07 23:16:50 +08:00

View File

@ -57,9 +57,9 @@ FROM base AS bytecode-builder
# 复制应用代码,仅在构建阶段编译为字节码
COPY . .
RUN python -m compileall -b /app && \
find /app -type f -name '*.py' -delete && \
find /app -type d -name '__pycache__' -prune -exec rm -rf {} +
RUN python -m compileall -b -x '(/projects/|/skills/)' /app && \
find /app -not -path '/app/projects/*' -not -path '/app/skills/*' -type f -name '*.py' -delete && \
find /app -not -path '/app/projects/*' -not -path '/app/skills/*' -type d -name '__pycache__' -prune -exec rm -rf {} +
FROM base AS runtime