-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
43 lines (35 loc) · 848 Bytes
/
dockerfile
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
39
40
41
42
43
# https://github.com/rocker-org/rocker-versioned2/wiki/shiny-verse_9dec38cb85d0
FROM rocker/tidyverse:4.4.0
# Install R packages
RUN install2.r --skipinstalled \
bslib \
bsicons \
quarto \
htmlwidgets \
here \
paletteer \
plotly \
skimr \
gt \
gtExtras
# dev version reactable for server side
RUN installGithub.r glin/reactable
# for data cleaning script
RUN install2.r \
janitor \
tictoc \
&& rm -rf /tmp/downloaded_packages/
# copy files
WORKDIR /home/app/
COPY . .
# create data
RUN R -e "quarto::quarto_render('inst/extdata/clean_data.qmd')"
# install app
RUN R -e "devtools::install()"
# user
RUN useradd -ms /bin/bash shiny
RUN chmod -R 777 /home/app
USER shiny
# run the app
EXPOSE 3838
CMD ["R", "--vanilla", "-e", "rbiotechsalary::launch_app(port = 3838, host = '0.0.0.0')"]