Spaces:
Paused
Paused
| # Stage 1: Get the genspark2api binary | |
| FROM ghcr.io/deanxv/genspark2api:latest AS genspark2api | |
| # Stage 2: Get the genspark-playwright-proxy files | |
| FROM deanxv/genspark-playwright-proxy:latest AS proxy | |
| # Final stage: Combine them into a new image | |
| # Use the proxy image as base because it contains Node.js and browser dependencies | |
| FROM deanxv/genspark-playwright-proxy:latest | |
| # Install supervisor | |
| RUN apt-get update && apt-get install -y supervisor && rm -rf /var/lib/apt/lists/* | |
| # Create directories for services | |
| RUN mkdir -p /app/genspark2api | |
| # Copy the genspark2api binary from the first stage | |
| COPY --from=genspark2api /genspark2api /app/genspark2api/genspark2api | |
| # Copy the supervisor configuration file | |
| COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
| # Expose the ports for both services (though only one will be mapped by Hugging Face) | |
| EXPOSE 7055 7022 | |
| # Start supervisor to manage both services | |
| CMD ["/usr/bin/supervisord"] |