Created
November 15, 2018 14:40
-
-
Save edavidaja/6dba73b582a5f6e03192f0a5bad06ffd to your computer and use it in GitHub Desktop.
A dockerfile to install spacyr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rocker/rstudio | |
RUN sudo apt-get update && sudo apt-get install python3 bzip2 -y | |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh && \ | |
bash miniconda.sh -b -p /opt/miniconda | |
ENV PATH "$PATH:/opt/miniconda/bin" | |
RUN conda config --set always_yes yes --set changeps1 no | |
RUN conda update -q conda | |
# because of the occasional build timeout from installing spacyr from github I install | |
# remotes and the spacyr dependencies from directly from CRAN | |
RUN R -e "install.packages(c('remotes', 'data.table', 'Rcpp', 'reticulate'));remotes::install_github('quanteda/spacyr', build_vignettes = FALSE)" | |
RUN R -e "library(spacyr);spacy_install(conda = '/opt/miniconda/bin/conda', prompt=FALSE)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment