@@ -7,8 +7,8 @@ RUN apt-get update && apt-get install -y git make curl
77# Copy only dependency manifests and package source before installing.
88COPY scripts/script-requirements.txt /scripts/script-requirements.txt
99COPY gooddata-api-client /gooddata-api-client
10- COPY packages/gooddata-sdk /gooddata-sdk
11- COPY packages/gooddata-pandas /gooddata-pandas
10+ COPY packages/gooddata-sdk /packages/ gooddata-sdk
11+ COPY packages/gooddata-pandas /packages/ gooddata-pandas
1212
1313RUN --mount=type=cache,target=/root/.cache/pip \
1414 pip install -r /scripts/script-requirements.txt
@@ -21,9 +21,7 @@ WORKDIR /docs
2121
2222RUN python json_builder.py && \
2323 python python_ref_builder.py api_spec.toml data.json latest content/en && \
24- mkdir versioned_docs/latest && \
25- mv -f data.json ./versioned_docs/latest/data.json && \
26- mv -f content/en/latest/links.json ./versioned_docs/latest/links.json
24+ rm -f data.json
2725
2826FROM node:20.18.0-bookworm-slim
2927
@@ -37,9 +35,9 @@ COPY --from=builder /docs /docs
3735
3836WORKDIR /docs
3937
40- # Use BuildKit cache mounts so npm/Go package downloads survive layer rebuilds
38+ # npm cache mount speeds up rebuilds; Go modules are stored in the image
39+ # layer so Hugo can resolve them at runtime.
4140RUN --mount=type=cache,target=/root/.npm \
42- --mount=type=cache,target=/root/go/pkg/mod \
4341 npm install && \
4442 hugo mod get
4543
0 commit comments