Téléverser les fichiers vers "/"
This commit is contained in:
parent
034f4e111e
commit
587f6857b7
82
Dockerfile
82
Dockerfile
|
@ -1,39 +1,43 @@
|
||||||
FROM rocker/r-ver
|
FROM rocker/r-ver
|
||||||
|
|
||||||
RUN groupadd shiny && useradd -r -m shiny -g shiny
|
# Create a new group and user for Shiny
|
||||||
|
RUN groupadd shiny && useradd -r -m shiny -g shiny
|
||||||
RUN apt-get update \
|
|
||||||
&& apt-get install -y --no-install-recommends \
|
# Install system dependencies
|
||||||
pandoc \
|
RUN apt-get update \
|
||||||
pandoc-citeproc \
|
&& apt-get install -y --no-install-recommends \
|
||||||
libcurl4-gnutls-dev \
|
pandoc \
|
||||||
libcairo2-dev \
|
pandoc-citeproc \
|
||||||
libxt-dev \
|
libcurl4-gnutls-dev \
|
||||||
xtail \
|
libcairo2-dev \
|
||||||
libssl-dev \
|
libxt-dev \
|
||||||
libicu-dev \
|
xtail \
|
||||||
wget
|
libssl-dev \
|
||||||
|
libicu-dev \
|
||||||
RUN R -e "install.packages(c('dplyr', 'shiny', 'readxl','remotes','httpuv','shinythemes','DT','ggplot2','gridExtra','emmeans','officer'), repos = 'https://cran.rstudio.com/', method='wget')"
|
wget
|
||||||
RUN R -e 'install.packages("factoextra")'
|
|
||||||
RUN R -e 'install.packages("officer")'
|
# Install R packages
|
||||||
RUN R -e 'install.packages("car")'
|
RUN R -e 'install.packages("remotes")'
|
||||||
RUN R -e 'install.packages("markdown")'
|
RUN R -e "install.packages(c('dplyr', 'shiny', 'readxl', 'remotes', 'httpuv', 'shinythemes', 'DT', 'ggplot2', 'gridExtra', 'emmeans', 'officer', 'car', 'markdown', 'plotly', 'factoextra', 'shinylogs', 'auth0', 'httr', 'shinyjs'), repos = 'https://cran.rstudio.com/', method='wget')"
|
||||||
RUN R -e 'install.packages("plotly")'
|
RUN R -e 'install_dev("shiny")'
|
||||||
RUN R -e 'install.packages("shinylogs")'
|
|
||||||
|
# Create a directory for your Shiny app
|
||||||
RUN mkdir -p /srv/shiny && \
|
RUN mkdir -p /srv/shiny && \
|
||||||
chown shiny:shiny /srv/shiny
|
chown shiny:shiny /srv/shiny
|
||||||
|
|
||||||
COPY app.R /srv/shiny/app.R
|
# Copy the Shiny app to the container
|
||||||
COPY README.md /srv/shiny/README.md
|
COPY app.R /srv/shiny/app.R
|
||||||
COPY arbre1.png /srv/shiny/arbre1.png
|
COPY README.md /srv/shiny/README.md
|
||||||
COPY arbre2.png /srv/shiny/arbre2.png
|
COPY arbre1.png /srv/shiny/arbre1.png
|
||||||
|
COPY arbre2.png /srv/shiny/arbre2.png
|
||||||
EXPOSE 8080
|
COPY .Renviron /srv/shiny/.Renviron
|
||||||
|
|
||||||
USER shiny
|
# Expose the port Shiny app runs on
|
||||||
|
EXPOSE 8080
|
||||||
|
|
||||||
|
# Use the created shiny user
|
||||||
CMD ["R", "-e", "shiny::runApp('/srv/shiny', host='0.0.0.0', port=8080, launch.browser = F)"]
|
USER shiny
|
||||||
|
|
||||||
|
# Command to run the Shiny app
|
||||||
|
|
||||||
|
CMD ["R", "-e", "shiny::runApp('/srv/shiny', host='0.0.0.0', port=8080, launch.browser = FALSE)"]
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
name: Stat_Plateform
|
||||||
|
remote_url: ''
|
||||||
|
auth0_config:
|
||||||
|
api_url: !expr paste0('https://', Sys.getenv("AUTH0_USER"), '.okta.com/oauth2/default/v1')
|
||||||
|
credentials:
|
||||||
|
key: !expr Sys.getenv("AUTH0_KEY")
|
||||||
|
secret: !expr Sys.getenv("AUTH0_SECRET")
|
Loading…
Reference in New Issue