vibetunnel/web/test-vibetunnel-simple.dockerfile
Peter Steinberger 84b7467e83 fix: handle authenticate-pam as optional dependency in npm package
- Modified postinstall script to extract authenticate-pam prebuilds when npm skips optional deps
- Updated authenticate-pam-loader to load from optional-modules directory
- Prepared beta.12 release with all fixes consolidated
- Moved Docker test script to scripts folder
- Updated documentation in npm.md
2025-07-17 09:32:42 +02:00

29 lines
No EOL
887 B
Docker

# Test VibeTunnel npm package with prebuilds
FROM node:22
# Create a test user
RUN useradd -m -s /bin/bash testuser
# Install dependencies
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Install vibetunnel globally
RUN npm install -g --ignore-scripts vibetunnel@latest
# Test script
RUN echo '#!/bin/bash\n\
echo "Testing VibeTunnel npm package..."\n\
echo "Node version: $(node --version)"\n\
echo "npm version: $(npm --version)"\n\
echo ""\n\
echo "Testing vibetunnel command..."\n\
which vibetunnel && echo "✅ vibetunnel command found" || echo "❌ vibetunnel command not found"\n\
echo ""\n\
echo "Checking version..."\n\
vibetunnel --version 2>&1 || echo "Note: Version check may fail if native modules are missing"\n\
echo ""\n\
echo "Checking help..."\n\
vibetunnel --help 2>&1 | head -20\n\
' > /test.sh && chmod +x /test.sh
CMD ["/test.sh"]