Download Dockerfile from abcd118q/Nango: direct link, hf CLI and curl.
- Browser
- Download file 942 Bytes
-
https://huggingface.co/spaces/abcd118q/Nango/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/abcd118q/Nango/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/abcd118q/Nango/resolve/main/Dockerfile
942 Bytes
| # Start directly from Nango's official self-hosted server image | |
| FROM nangohq/nango-server:hosted | |
| USER root | |
| # Install PostgreSQL and Redis inside the Nango container instance | |
| RUN apt-get update && apt-get install -y \ | |
| postgresql \ | |
| postgresql-contrib \ | |
| redis-server \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy our persistent database orchestration script | |
| COPY entrypoint.sh /usr/local/bin/entrypoint.sh | |
| RUN chmod +x /usr/local/bin/entrypoint.sh | |
| # --- SYSTEM ENVIRONMENT CONFIGURATION --- | |
| ENV NANGO_DB_HOST=localhost | |
| ENV NANGO_DB_PORT=5432 | |
| ENV NANGO_DB_USER=nango | |
| ENV NANGO_DB_PASSWORD=nango | |
| ENV NANGO_DB_NAME=nango | |
| ENV RECORDS_DATABASE_URL=postgresql://nango:nango@localhost:5432/nango | |
| # Force Nango's web application and dashboard to listen directly on Hugging Face's required port | |
| ENV SERVER_PORT=7860 | |
| EXPOSE 7860 | |
| # Intercept the startup process with our custom entrypoint script | |
| ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | |