build: updated Dockerfile to include patch files during
- Updated Dockerfile to include patch files during dependency installation steps. - Included patch files in Dockerfile.robomp to ensure patched dependencies are correctly resolved during the install phase.
This commit is contained in:
@@ -49,6 +49,7 @@ WORKDIR /pi
|
|||||||
# matched path under /pi/ (requires syntax 1.7-labs).
|
# matched path under /pi/ (requires syntax 1.7-labs).
|
||||||
COPY --parents \
|
COPY --parents \
|
||||||
package.json bun.lock bunfig.toml \
|
package.json bun.lock bunfig.toml \
|
||||||
|
patches/*.patch \
|
||||||
tsconfig.base.json tsconfig.json \
|
tsconfig.base.json tsconfig.json \
|
||||||
Cargo.toml Cargo.lock rust-toolchain.toml \
|
Cargo.toml Cargo.lock rust-toolchain.toml \
|
||||||
packages/*/package.json \
|
packages/*/package.json \
|
||||||
@@ -169,6 +170,7 @@ WORKDIR /pi
|
|||||||
# only re-runs when a package.json / lockfile changes.
|
# only re-runs when a package.json / lockfile changes.
|
||||||
COPY --parents \
|
COPY --parents \
|
||||||
package.json bun.lock bunfig.toml \
|
package.json bun.lock bunfig.toml \
|
||||||
|
patches/*.patch \
|
||||||
tsconfig.base.json tsconfig.json \
|
tsconfig.base.json tsconfig.json \
|
||||||
packages/*/package.json \
|
packages/*/package.json \
|
||||||
packages/tsconfig.workspace.json \
|
packages/tsconfig.workspace.json \
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ WORKDIR /work
|
|||||||
# --filter robomp-web` to hydrate just the dashboard's node_modules.
|
# --filter robomp-web` to hydrate just the dashboard's node_modules.
|
||||||
COPY package.json bun.lock ./
|
COPY package.json bun.lock ./
|
||||||
COPY python/robomp/web/package.json ./python/robomp/web/package.json
|
COPY python/robomp/web/package.json ./python/robomp/web/package.json
|
||||||
|
# Root package.json declares patchedDependencies, so the patch file must be
|
||||||
|
# present before any root-level `bun install` (even a filtered one).
|
||||||
|
COPY patches/*.patch ./patches/
|
||||||
RUN bun install --filter robomp-web
|
RUN bun install --filter robomp-web
|
||||||
COPY --exclude=node_modules --exclude=dist python/robomp/web/ ./python/robomp/web/
|
COPY --exclude=node_modules --exclude=dist python/robomp/web/ ./python/robomp/web/
|
||||||
RUN bun --cwd=python/robomp/web run build
|
RUN bun --cwd=python/robomp/web run build
|
||||||
|
|||||||
Reference in New Issue
Block a user