You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First i create the docker image with this dockefile :
# Use the official R base image
FROM r-base:latest
# Install necessary packages
RUN R -e "install.packages(c('shiny', 'shinydashboard', 'dplyr', 'ggplot2','readxl','highcharter','sqldf','plotly'), repos='https://cran.rstudio.com/')"# Copy your app.R file into the container
COPY app.R /srv/shiny-server/
# Expose the Shiny app's port (default is 3838)
EXPOSE 3838
# Run the Shiny app
CMD ["R", "-e", "shiny::runApp('/srv/shiny-server/app.R', host='0.0.0.0', port=3838)"]
but when i try to build the docker image with this command
docker build -t shiny-app .
i have this issue :
Error in library(highcharter) : there is no package called ‘highcharter
I don't have this error when i run in local (i install all the packages few month ago)
Can you help me ?
Thanks in advance 😃 ,
François Lenne
The text was updated successfully, but these errors were encountered:
Check the docker image build log, I would suggest when it's trying to install highcharter it is falling, so when you try run it there is no highcharter library to call.
As a suggestion check the package prerequisites for the distribution, and you may need to add these on top of the base image
Hello,
I try to dockerize a shiny dashboard.
First i create the docker image with this dockefile :
but when i try to build the docker image with this command
docker build -t shiny-app .
i have this issue :
Error in library(highcharter) : there is no package called ‘highcharter
I don't have this error when i run in local (i install all the packages few month ago)
Can you help me ?
Thanks in advance 😃 ,
François Lenne
The text was updated successfully, but these errors were encountered: