File size: 788 Bytes
f888423
 
 
 
 
 
 
 
 
 
 
 
0b48c55
 
 
f888423
0b48c55
f888423
 
 
 
 
 
 
 
 
 
0b48c55
f888423
 
 
 
 
0b48c55
f888423
0b48c55
f888423
 
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
35
36
37
38
FROM rocker/shiny-verse:4.3.0

RUN apt-get update --fix-missing \
    && apt-get install -y software-properties-common \
    && rm -rf /var/lib/apt/lists/* 
RUN add-apt-repository -y ppa:cran/poppler
RUN apt-get install -y libpoppler-cpp-dev


# Workaround for renv cache
RUN mkdir /.cache
RUN chmod 777 /.cache

WORKDIR /code

# Install renv
RUN install2.r --error \
    renv 


# Copy application code
COPY renv.lock .
COPY package.json .
COPY package-lock.json .

# Install dependencies
RUN Rscript -e 'options(renv.config.cache.enabled = FALSE); renv::restore(prompt = FALSE)'

COPY data/ ./data/
COPY app.R .
COPY config.yml .
COPY rhino.yml .
COPY app/ ./app/

RUN ls -lah ./data/

RUN mkdir -p ./app_cache/sass
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]