softwareDevelopment commited on
Commit
9215661
Β·
verified Β·
1 Parent(s): ab1e59e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -14
Dockerfile CHANGED
@@ -5,7 +5,7 @@ FROM eddelbuettel/r2u:22.04
5
  LABEL maintainer="QTL Mapping Suite"
6
  LABEL description="Interactive QTL Mapping Shiny Application"
7
 
8
- # ── System dependencies + lsb-release for shiny-server ───
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  lsb-release \
11
  wget \
@@ -35,7 +35,7 @@ RUN wget -q https://download3.rstudio.org/ubuntu-18.04/x86_64/shiny-server-1.5.2
35
  && apt-get clean \
36
  && rm -rf /var/lib/apt/lists/*
37
 
38
- # ── Install R packages as true apt binaries via r2u ──────
39
  RUN install.r \
40
  shiny \
41
  shinyWidgets \
@@ -75,16 +75,5 @@ RUN chown -R shiny:shiny /srv/shiny-server \
75
  && mkdir -p /var/log/shiny-server \
76
  && chown -R shiny:shiny /var/log/shiny-server
77
 
78
- RUN R -e "remotes::install_github('bmansfeld/QTLseqr', upgrade='never', dependencies=FALSE)"
79
-
80
- # Create www directory and health file directly
81
- RUN mkdir -p /code/www && echo "OK" > /code/www/health
82
-
83
- # Copy app code
84
- COPY app.R /code/
85
-
86
- # Expose the port Shiny will run on
87
  EXPOSE 7860
88
-
89
- # Run the app with corrected host address
90
- CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]
 
5
  LABEL maintainer="QTL Mapping Suite"
6
  LABEL description="Interactive QTL Mapping Shiny Application"
7
 
8
+ # ── System dependencies ───────────────────────────────────
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  lsb-release \
11
  wget \
 
35
  && apt-get clean \
36
  && rm -rf /var/lib/apt/lists/*
37
 
38
+ # ── Install R packages via r2u (pre-built binaries) ───────
39
  RUN install.r \
40
  shiny \
41
  shinyWidgets \
 
75
  && mkdir -p /var/log/shiny-server \
76
  && chown -R shiny:shiny /var/log/shiny-server
77
 
 
 
 
 
 
 
 
 
 
78
  EXPOSE 7860
79
+ CMD ["/usr/bin/shiny-server"]