@@ -77,10 +77,17 @@ LABEL io.seqera.connect.version="${CONNECT_CLIENT_VERSION}"
7777COPY --from=connect /usr/bin/connect-client /usr/bin/connect-client
7878RUN /usr/bin/connect-client --install
7979
80- WORKDIR /app
81-
82- # Pre-built shinyngs app and its serialised dataset
83- COPY app.R data.rds /app/
80+ # ---------------------------------------------------------------
81+ # App code (app.R) and dataset (data.rds) are NOT copied into the
82+ # image. They are delivered at runtime by the Studios git clone into
83+ # /workspace/.seqera (configured via session.clone in studio-config.yaml).
84+ #
85+ # WARNING: If clone is not enabled, the studio won't run — app.R and
86+ # data.rds will be missing from the container.
87+ #
88+ # data.rds is also excluded from the docker build context via
89+ # .seqera/.dockerignore (it exceeds the 5MB build-context file limit).
90+ # ---------------------------------------------------------------
8491
8592# ---------------------------------------------------------------
8693# 3) Launch with connect-client --entrypoint (for Platform)
@@ -90,4 +97,6 @@ ENTRYPOINT ["/usr/bin/connect-client", "--entrypoint"]
9097# Port is set by CONNECT_TOOL_PORT. library() calls are required:
9198# shinyngs attaches prepareApp() for app.R; shinyBS/shinyjs register
9299# their addResourcePath hooks (else sbs/shinyBS.css etc. 404).
93- CMD ["micromamba" , "run" , "-n" , "shinyngs" , "R" , "-e" , "library(shinyngs); library(shinyBS); library(shinyjs); library(markdown); shiny::runApp('/app', host='0.0.0.0', port=as.integer(Sys.getenv('CONNECT_TOOL_PORT')))" ]
100+ # runApp() runs from the cloned app dir, so app.R's relative
101+ # readRDS("data.rds") resolves to /workspace/.seqera/data.rds.
102+ CMD ["micromamba" , "run" , "-n" , "shinyngs" , "R" , "-e" , "library(shinyngs); library(shinyBS); library(shinyjs); library(markdown); shiny::runApp('/workspace/.seqera', host='0.0.0.0', port=as.integer(Sys.getenv('CONNECT_TOOL_PORT')))" ]
0 commit comments