| # Uptime Monitoring API on HF Spaces | |
| # Based on: maxxcarl/uptime-monitoring-api:latest | |
| FROM maxxcarl/uptime-monitoring-api:latest | |
| USER root | |
| # Install socat for port forwarding | |
| RUN apt-get update && apt-get install -y socat && rm -rf /var/lib/apt/lists/* | |
| USER appuser | |
| EXPOSE 7860 | |
| # Start the app and forward port 3000 to 7860 | |
| CMD sh -c "rust-api-server & socat TCP-LISTEN:7860,fork TCP:localhost:3000" | |