Compare commits
No commits in common. "ed1b0bb85dc11c087553351dee3a43c4de870341" and "1dae2a1bc0656a0fdf174507ac7d9e2cdecd4d14" have entirely different histories.
ed1b0bb85d
...
1dae2a1bc0
@ -56,9 +56,9 @@ FROM base AS bytecode-builder
|
|||||||
|
|
||||||
# 复制应用代码,仅在构建阶段编译为字节码
|
# 复制应用代码,仅在构建阶段编译为字节码
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN python -m compileall -b -x '(/projects/|/skills/)' /app && \
|
RUN python -m compileall -b /app && \
|
||||||
find /app -not -path '/app/projects/*' -not -path '/app/skills/*' -type f -name '*.py' -delete && \
|
find /app -type f -name '*.py' -delete && \
|
||||||
find /app -not -path '/app/projects/*' -not -path '/app/skills/*' -type d -name '__pycache__' -prune -exec rm -rf {} +
|
find /app -type d -name '__pycache__' -prune -exec rm -rf {} +
|
||||||
|
|
||||||
FROM base AS runtime
|
FROM base AS runtime
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user