Téléverser les fichiers vers "/"
This commit is contained in:
parent
034f4e111e
commit
587f6857b7
22
Dockerfile
22
Dockerfile
|
@ -1,7 +1,9 @@
|
|||
FROM rocker/r-ver
|
||||
|
||||
# Create a new group and user for Shiny
|
||||
RUN groupadd shiny && useradd -r -m shiny -g shiny
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
pandoc \
|
||||
|
@ -14,26 +16,28 @@ RUN apt-get update \
|
|||
libicu-dev \
|
||||
wget
|
||||
|
||||
RUN R -e "install.packages(c('dplyr', 'shiny', 'readxl','remotes','httpuv','shinythemes','DT','ggplot2','gridExtra','emmeans','officer'), repos = 'https://cran.rstudio.com/', method='wget')"
|
||||
RUN R -e 'install.packages("factoextra")'
|
||||
RUN R -e 'install.packages("officer")'
|
||||
RUN R -e 'install.packages("car")'
|
||||
RUN R -e 'install.packages("markdown")'
|
||||
RUN R -e 'install.packages("plotly")'
|
||||
RUN R -e 'install.packages("shinylogs")'
|
||||
# Install R packages
|
||||
RUN R -e 'install.packages("remotes")'
|
||||
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_dev("shiny")'
|
||||
|
||||
# Create a directory for your Shiny app
|
||||
RUN mkdir -p /srv/shiny && \
|
||||
chown shiny:shiny /srv/shiny
|
||||
|
||||
# Copy the Shiny app to the container
|
||||
COPY app.R /srv/shiny/app.R
|
||||
COPY README.md /srv/shiny/README.md
|
||||
COPY arbre1.png /srv/shiny/arbre1.png
|
||||
COPY arbre2.png /srv/shiny/arbre2.png
|
||||
COPY .Renviron /srv/shiny/.Renviron
|
||||
|
||||
# Expose the port Shiny app runs on
|
||||
EXPOSE 8080
|
||||
|
||||
# Use the created shiny user
|
||||
USER shiny
|
||||
|
||||
# Command to run the Shiny app
|
||||
|
||||
|
||||
CMD ["R", "-e", "shiny::runApp('/srv/shiny', host='0.0.0.0', port=8080, launch.browser = F)"]
|
||||
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