Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

/usr/bin/shiny-server.sh: no such file or directory error #100

Closed
PraveenBeedanal opened this issue Feb 15, 2022 · 2 comments
Closed

/usr/bin/shiny-server.sh: no such file or directory error #100

PraveenBeedanal opened this issue Feb 15, 2022 · 2 comments

Comments

@PraveenBeedanal
Copy link

Hello,

I have used rocker/shiny-verse: latest base image for creating a Dockerfile for shinyapps.
Here is my Dockerfile for reference,

FROM rocker/shiny-verse:latest
# install R package dependencies
RUN apt-get update && apt-get -qq -y install curl \
    libssl-dev \
    libcurl4-openssl-dev \
    ## clean up
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/ \
    && rm -rf /tmp/downloaded_packages/ /tmp/*.rds
   
RUN apt-get update && apt-get install -y \
    sudo \
    pandoc \
    pandoc-citeproc \
    libcurl4-gnutls-dev \
    libcairo2-dev \
    libxt-dev \
    libssh2-1-dev
RUN R -e "install.packages('shiny', repos='http://cran.rstudio.com/')"

COPY ./Shiny/  /srv/shiny-server/shiny/

# select port
EXPOSE 3838
# run app
CMD ["/usr/bin/shiny-server.sh"]
 

When i build an image and run the container getting the following error.

docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "/usr/bin/shiny-server.sh": stat /usr/bin/shiny-server.sh: no such file or directory: unknown.

Is it the problem in Dockerfile or image?

Thanks

@eitsupi
Copy link
Member

eitsupi commented Feb 15, 2022

I don't know what your intention was when you created that Dockerfile.
The CMD of the image is configured to start Shiny Server by default, so you don't need to configure that.

This should works.

FROM rocker/shiny-verse:latest
COPY ./Shiny/  /srv/shiny-server/shiny/

By the way, this repository is no longer in use.
It is recommended to check the new repository. https://github.com/rocker-org/rocker-versioned2

@PraveenBeedanal
Copy link
Author

@eitsupi Thanks for the help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants