@@ -36,8 +36,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
3636 --mount=type=cache,target=/var/lib/apt,sharing=locked \
3737 set -eux; \
3838 apt-get update; \
39- # 基础工具
40- apt-get install -y --no-install-recommends \
39+ apt-get install -y eatmydata; \
40+ eatmydata apt-get install -y \
4141 python3 python3-pip python3-dev \
4242 bash tini tar zstd unzip git ca-certificates curl wget \
4343 liblmdb0 build-essential libffi-dev ghostscript \
@@ -70,10 +70,10 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
7070 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
7171 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget; \
7272 # 清理
73+ apt-get purge -y --auto-remove eatmydata; \
7374 apt-get clean; \
74- rm -rf /var/lib/apt/lists/*; \
75- fc-cache -fv; \
76- git config --system --add safe.directory '/__w/*'
75+ git config --system --add safe.directory '/__w/*' ; \
76+ rm -rf /var/lib/apt/lists/*
7777
7878WORKDIR /app
7979
@@ -89,9 +89,10 @@ RUN --mount=type=bind,source=.python-version,target=.python-version \
8989 uv sync --locked --no-cache
9090
9191# 6. 拷贝应用代码
92- COPY src/ ./src/
93- COPY scripts/ ./scripts/
94- COPY templates/ ./templates/
92+ COPY src/ /app/src/
93+ COPY scripts/ /app/scripts/
94+ COPY templates/ /app/templates/
95+ COPY --chmod=755 bin/ /usr/local/bin/
9596
9697ENTRYPOINT ["/usr/bin/tini" , "--" ]
97- CMD ["npm" , "start " ]
98+ CMD ["export-pdf " ]
0 commit comments