ThinkR-open / dockerfiler

Easy Dockerfile Creation from R
https://thinkr-open.github.io/dockerfiler/
Other
176 stars 26 forks source link

is it possible to specify the rocker version you want to start from? #2

Closed RMHogervorst closed 5 years ago

RMHogervorst commented 5 years ago

I know rocker has versioned builds, but is it possible to specify that in dockerfiler?

ColinFay commented 5 years ago

Sure, you can choose your own when creating the Dockerfile object:

library(dockerfiler)
x <- Dockerfile$new(FROM = "rocker/r-ver:3.5.1")
x$RUN(r(install.packages('attempt')))
x
#> FROM rocker/r-ver:3.5.1
#> RUN R -e 'install.packages("attempt")'

Created on 2019-07-22 by the reprex package (v0.3.0)

RMHogervorst commented 5 years ago

Nice!