This is an automated email from the ASF dual-hosted git repository.

zfc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-website.git

commit 24467831f1321b74cc41a81cb17e796c0ae630ef
Author: glass-panel <[email protected]>
AuthorDate: Wed Jul 16 16:19:40 2025 +0800

    Fix build deps
---
 Dockerfile    | 10 ++++++----
 site/Makefile |  1 +
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 3ba6038cc..4ab087ecf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -48,23 +48,25 @@ RUN rm -rf teaclave/build
 # Dependencies stage
 FROM node:22-slim AS deps
 WORKDIR /app
-COPY site/package*.json site/
-RUN cd site && npm install
+COPY site/package*.json ./
+RUN npm install
 
 # Final stage
 FROM node:22-slim as teaclave-docs-site
 
-COPY --from=deps /app/site/node_modules /app/site/node_modules
+COPY --from=deps /app/node_modules /app/node_modules
 COPY --from=sgx-docs /prebuilt_docs/sgx-sdk-docs /prebuilt_docs/sgx-sdk-docs
 COPY --from=teaclave-docs /prebuilt_docs/teaclave-docs 
/prebuilt_docs/teaclave-docs
 
 ENV PATH="/root/.cargo/bin:${PATH}"
 ENV PYTHONPATH="/usr/local/lib/python3.9/dist-packages:${PYTHONPATH}"
+ENV NPM_CONFIG_PREFIX="/app/node_modules"
 
 WORKDIR /app
 
 RUN apt-get update && apt-get install -y \
     python3 \
     python3-pip \
+    git \
     curl
-RUN pip3 install ghp-import
\ No newline at end of file
+RUN pip3 install --break-system-packages ghp-import
\ No newline at end of file
diff --git a/site/Makefile b/site/Makefile
index 154134f1f..2d8a5dee9 100644
--- a/site/Makefile
+++ b/site/Makefile
@@ -47,6 +47,7 @@ teaclave-docs: teaclave-crates-docs client-sdk-python-docs 
client-sdk-rust-docs
 
 site-build: update-repo
        npm run build
+       mkdir -p build/api-docs
 
 dev:
        npm run start


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to