I am attempting to create a container that runs an R script which calls a .DLL
The line in my Rscript uses dyn.load.
The image build seems ok.
When doing docker run, I get error:
Error in dyn.load(“vollib.dll”) :
unable to load shared object ‘//vollib.dll’:
//vollib.dll: invalid ELF header
Execution halted
My dockerfile is:
start from the rocker/r-ver:3.5.0 image
FROM rocker/r-ver:3.5.0
install the linux libraries needed for plumber
RUN apt-get update -qq && apt-get install -y
libssl-dev
libcurl4-gnutls-dev
install plumber
RUN R -e “install.packages(‘plumber’)”
install plumber
RUN R -e “install.packages(‘dplyr’)”
copy everything from the current directory into the container
WORKDIR /app
Copy the current directory contents into the container at /app
COPY . /app
open port 80 to traffic
EXPOSE 80
when the container starts, start the main.R script
ENTRYPOINT [“Rscript”, “main.R”]
Any suggestions?