Skip to content

Commit cd2e16d

Browse files
committed
Optimize app for shiny proxy
1 parent cc84989 commit cd2e16d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ COPY inst/www /app/www
3939
COPY inst/hg38_Coordinates.rds /app
4040
COPY inst/hg37_Coordinates.rds /app
4141
COPY tools/ReViewCNV.R /app
42-
ENTRYPOINT ["Rscript", "ReViewCNV.R"]
42+
43+
CMD R -e "shiny::runApp('/app', host='0.0.0.0', port=as.numeric(Sys.getenv('PORT')))"
4344

4445

4546

tools/ReViewCNV.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ library(arrow)
1111

1212
# Specify the application port
1313

14+
1415
port <- as.integer(Sys.getenv("SHINYPROXY_PORT", "6868"))
1516
options(shiny.port = port, shiny.host = "0.0.0.0")
1617

0 commit comments

Comments
 (0)