Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
35
npm/packages/ruvllm/Dockerfile.benchmark
Normal file
35
npm/packages/ruvllm/Dockerfile.benchmark
Normal file
@@ -0,0 +1,35 @@
|
||||
# RuvLLM Benchmark Dockerfile
|
||||
# Runs comprehensive performance benchmarks in isolated environment
|
||||
|
||||
FROM node:20-alpine
|
||||
|
||||
# Install build dependencies for native modules
|
||||
RUN apk add --no-cache \
|
||||
python3 \
|
||||
make \
|
||||
g++ \
|
||||
git
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files and configs
|
||||
COPY package*.json ./
|
||||
COPY tsconfig.json ./
|
||||
COPY tsconfig.esm.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy source and test files
|
||||
COPY src/ ./src/
|
||||
COPY test/ ./test/
|
||||
|
||||
# Build TypeScript
|
||||
RUN npm run build
|
||||
|
||||
# Set environment for benchmarking
|
||||
ENV NODE_ENV=production
|
||||
ENV BENCHMARK_ITERATIONS=1000
|
||||
|
||||
# Run benchmarks
|
||||
CMD ["node", "test/benchmark.js"]
|
||||
Reference in New Issue
Block a user