fix: copy hoisted node_modules in CI Dockerfile (#161)
This commit is contained in:
parent
6893d4065f
commit
9e69dcdcac
1 changed files with 7 additions and 0 deletions
|
|
@ -51,6 +51,9 @@ RUN if [ "$NPM_INSTALL_CMD" = "install" ]; then npm install; else npm ci; fi
|
||||||
# Copy service source
|
# Copy service source
|
||||||
COPY ${SERVICE_DIR}/ ./
|
COPY ${SERVICE_DIR}/ ./
|
||||||
|
|
||||||
|
# Ensure root node_modules exists (may be populated by workspace hoisting, or empty)
|
||||||
|
RUN mkdir -p /app/node_modules
|
||||||
|
|
||||||
# Copy onchain deployment artifacts (glob handles missing files)
|
# Copy onchain deployment artifacts (glob handles missing files)
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY onchain/deployments*.jso[n] ./onchain/
|
COPY onchain/deployments*.jso[n] ./onchain/
|
||||||
|
|
@ -71,6 +74,9 @@ COPY --from=builder /app/kraiken-lib/package.json ./kraiken-lib/
|
||||||
ARG SERVICE_DIR
|
ARG SERVICE_DIR
|
||||||
COPY --from=builder /app/${SERVICE_DIR} ./${SERVICE_DIR}
|
COPY --from=builder /app/${SERVICE_DIR} ./${SERVICE_DIR}
|
||||||
|
|
||||||
|
# Copy root node_modules (workspace-hoisted deps for landing/webapp, empty for others)
|
||||||
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
|
|
||||||
# Copy onchain artifacts
|
# Copy onchain artifacts
|
||||||
COPY --from=builder /app/onchain ./onchain
|
COPY --from=builder /app/onchain ./onchain
|
||||||
|
|
||||||
|
|
@ -112,3 +118,4 @@ HEALTHCHECK --interval=5s --timeout=3s --retries=12 --start-period=20s \
|
||||||
CMD wget --spider -q http://127.0.0.1:${PORT}${HEALTHCHECK_PATH} || exit 1
|
CMD wget --spider -q http://127.0.0.1:${PORT}${HEALTHCHECK_PATH} || exit 1
|
||||||
|
|
||||||
ENTRYPOINT ["dumb-init", "--", "/entrypoint.sh"]
|
ENTRYPOINT ["dumb-init", "--", "/entrypoint.sh"]
|
||||||
|
# Force rebuild after cache prune — 2026-02-19T21:31:36Z
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue