forked from NEONScience/NEON-stream-discharge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (23 loc) · 1.08 KB
/
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
FROM rocker/shiny-verse:latest
ARG GITHUB_PAT
ENV GITHUB_PAT=$GITHUB_PAT
RUN rm -rf /srv/shiny-server/* && \
touch /srv/shiny-server/.Renviron && \
chown shiny:shiny /srv/shiny-server/.Renviron
COPY --chown=shiny:shiny shiny-openFlow/ /srv/shiny-server/
COPY entrypoint.sh /
# use packagemanager.rstudio.com to determine necessary non-R system prerequisites to install
# If the above tool doesn't have any SystemRequirements listed, use
# maketools::package_sysdeps("package_name")
# on a linux system with the required R package already installed
# the dependencies below already included in the shiny-verse image
#RUN apt-get update && apt-get install -y --no-install-recommends \
#libstdc++6 \
#&& apt-get clean \
#&& rm -rf /var/lib/apt/lists/*
# remotes::install_deps relies on the contents of src/DESCRIPTION
# and it must be copied to the container before running this command
RUN Rscript -e "remotes::install_deps('/srv/shiny-server/',repos='https://packagemanager.posit.co/cran/__linux__/jammy/latest')"
USER shiny:shiny
EXPOSE 3838
ENTRYPOINT [ "/entrypoint.sh" ]