Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
33
tests/docker-integration/Dockerfile
Normal file
33
tests/docker-integration/Dockerfile
Normal file
@@ -0,0 +1,33 @@
|
||||
# Test environment for ruvector-attention published packages
|
||||
FROM node:20-slim
|
||||
|
||||
# Install Rust for testing the crate
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl \
|
||||
build-essential \
|
||||
pkg-config \
|
||||
libssl-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Rust
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy test files
|
||||
COPY package.json ./
|
||||
COPY Cargo.toml ./
|
||||
COPY test-wasm.mjs ./
|
||||
COPY test-napi.mjs ./
|
||||
COPY src/ ./src/
|
||||
|
||||
# Install npm packages
|
||||
RUN npm install
|
||||
|
||||
# Build and test Rust crate
|
||||
RUN cargo build --release
|
||||
RUN cargo test --release
|
||||
|
||||
# Run Node.js tests
|
||||
CMD ["node", "--test"]
|
||||
Reference in New Issue
Block a user