Refactor code structure for improved readability and maintainability

This commit is contained in:
Dontrail Cotlage
2026-02-04 02:15:47 +00:00
parent 56d301de3e
commit c58cea33c5
19 changed files with 5428 additions and 0 deletions

23
poc/Dockerfile.bridge Normal file
View File

@@ -0,0 +1,23 @@
# POC Dockerfile for bridge security testing
FROM node:20-slim
# Build argument for ws version (allows testing vulnerable versions)
ARG WS_VERSION="^8.17.1"
WORKDIR /app
# Copy package files
COPY package.json tsconfig.json ./
COPY src/ ./src/
# Modify ws version for vulnerability testing
RUN npm pkg set dependencies.ws="${WS_VERSION}"
# Install dependencies
RUN npm install && npm run build 2>/dev/null || true
# Create results directory
RUN mkdir -p /results
# Default command
CMD ["node", "dist/index.js"]