File size: 773 Bytes
ccfbf15
 
 
 
7194dfd
 
 
 
 
 
 
 
 
ccfbf15
 
 
7194dfd
 
 
ccfbf15
7194dfd
 
 
 
 
 
 
 
 
 
 
ccfbf15
7194dfd
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM rocker/r-base:latest

WORKDIR /code

# Install system dependencies for building R packages and GitHub installs
RUN apt-get update && apt-get install -y \
    git \
    libcurl4-openssl-dev \
    libssl-dev \
    libgit2-dev \
  && rm -rf /var/lib/apt/lists/*

# Install required R packages
RUN install2.r --error \
    shiny \
    ggplot2 \
    tidyr \
    scales \
    dplyr \
    readr \
    ggExtra \
    remotes

# Install DescriptiveRepresentationCalculator from GitHub
RUN R -e "remotes::install_github('cjerzak/DescriptiveRepresentationCalculator-software/DescriptiveRepresentationCalculator')"

# Copy app code
COPY . /code

# Expose Shiny port
EXPOSE 7860

# Launch the Shiny app
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]