Skip to content

Instantly share code, notes, and snippets.

@xujiboy
Last active December 7, 2020 20:13
Show Gist options
  • Save xujiboy/46ea35e6e416a2544fd8e11ea811db07 to your computer and use it in GitHub Desktop.
Save xujiboy/46ea35e6e416a2544fd8e11ea811db07 to your computer and use it in GitHub Desktop.
Dockerfile to install Netflix/metaflow on top of rocker/ml
FROM rocker/ml:4.0.2
USER rstudio
WORKDIR /home/rstudio/
RUN Rscript -e 'devtools::install_github("Netflix/metaflow", subdir="R")'
RUN Rscript -e 'metaflow::install_metaflow(method="conda", prompt=FALSE)'
ENV USERNAME mfuser
RUN Rscript -e 'metaflow::test()'
USER root
@xujiboy
Copy link
Author

xujiboy commented Dec 1, 2020

Many thanks to @jasonge27 for the help.

@jasonge27
Copy link

Many thanks to @jasonge27 for the help.

Great. Thanks a lot for publishing this snippet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment