vibetunnel/web/test-vibetunnel-with-postinstall.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

26 lines
No EOL
883 B
Docker

# Test VibeTunnel npm package with postinstall
FROM node:22
# Install dependencies
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Install vibetunnel globally (with postinstall)
RUN npm install -g vibetunnel@latest
# Test script
RUN echo '#!/bin/bash\n\
echo "Testing VibeTunnel npm package..."\n\
echo "Node version: $(node --version)"\n\
echo ""\n\
echo "Checking installed files..."\n\
ls -la /usr/local/lib/node_modules/vibetunnel/node-pty/build/ 2>/dev/null || echo "No build directory"\n\
ls -la /usr/local/lib/node_modules/vibetunnel/prebuilds/ 2>/dev/null || echo "No prebuilds directory"\n\
echo ""\n\
echo "Testing vibetunnel command..."\n\
vibetunnel --version\n\
echo ""\n\
echo "Starting server test..."\n\
timeout 5 vibetunnel --port 4021 --no-auth || echo "Server test completed"\n\
' > /test.sh && chmod +x /test.sh
CMD ["/test.sh"]