Spaces:
Running
Running
| FROM rstudio/plumber:latest | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy application files | |
| COPY app.R /app/ | |
| # Expose port | |
| EXPOSE 7860 | |
| # Override entrypoint to set custom port | |
| ENTRYPOINT ["R", "-e"] | |
| CMD ["pr <- plumber::plumb('/app/app.R'); pr$run(host='0.0.0.0', port=7860)"] |