| FROM rocker/shiny:4.6.0 |
|
|
| |
| |
| RUN apt-get update && apt-get install -y --no-install-recommends \ |
| libcurl4-openssl-dev libssl-dev libxml2-dev libuv1t64 \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN echo 'options(repos = c(CRAN = "https://p3m.dev/cran/__linux__/noble/2026-09-01"))' \ |
| >> /usr/local/lib/R/etc/Rprofile.site |
|
|
| |
| RUN R -q -e "install.packages(c('shiny', 'bslib', 'DBI', 'RSQLite', 'ellmer', 'shinychat', 'querychat', 'DT', 'ggsql'))" |
|
|
| |
| RUN R -q -e "stopifnot(requireNamespace('querychat'), requireNamespace('RSQLite'), requireNamespace('DT'), requireNamespace('ggsql'), requireNamespace('fs')); cat(R.version.string, as.character(packageVersion('querychat')), '\n')" |
|
|
| WORKDIR /app |
| COPY app.R app.R |
| COPY data/ data/ |
|
|
| EXPOSE 7860 |
| CMD ["R", "-q", "-e", "shiny::runApp('/app', host = '0.0.0.0', port = 7860)"] |
|
|