initial dockerfile commit. Untested.
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
FROM r-base:latest
|
||||||
|
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
# Install system dependencies
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
git \
|
||||||
|
libcurl4-gnutls-dev \
|
||||||
|
libssl-dev \
|
||||||
|
libxml2-dev
|
||||||
|
|
||||||
|
# Install R packages
|
||||||
|
RUN Rscript -e "install.packages('remotes', dependencies=TRUE)" \
|
||||||
|
&& Rscript -e "remotes::install_github('federicogiorgi/corto')"
|
||||||
|
|
||||||
|
# Test commands to validate installation
|
||||||
|
RUN Rscript -e "library(corto); data('inmat'); print(head(inmat))"
|
||||||
|
|
||||||
|
CMD ["/bin/bash"]
|
||||||
Reference in New Issue
Block a user