chore: Update Dockerfile to remove node_modules during build

This commit is contained in:
Anduin 2024-06-02 06:15:16 +00:00
parent 5e63f1ca2b
commit cdc5feb795
No known key found for this signature in database
GPG Key ID: D33FA9407A6BE728
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ RUN node ./.github/readme-generate.js
FROM hub.aiursoft.cn/python:3.11 as python-env FROM hub.aiursoft.cn/python:3.11 as python-env
WORKDIR /app WORKDIR /app
COPY --from=node-env /app . COPY --from=node-env /app .
RUN pip install -r requirements.txt RUN pip install -r requirements.txt && rm node_modules -rf
RUN mkdocs build --strict RUN mkdocs build --strict
# ============================ # ============================