
17

时间序列预测库 prophet R版本 docker镜像打包
source link: https://blog.csdn.net/oqqYuan1234567890/article/details/105335697
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

由于项目有用到prophet,prophet提供python和R两个语言的库,项目需要用到R版本的prophet,需要把prophet打包到docker镜像。
docker hub上没有现成可用的prophet镜像,所以只能使用
当时试过以下几种方案
ubuntu基础镜像+R环境+在线安装prophet
ubuntu基础镜像+R环境 可以跑起来,但是调用RScript在线安装prophet的时候失败
R基础镜像+在线安装prophet
R基础镜像用的是 https://hub.docker.com/_/r-base
在线安装prophet的时候失败
anaconda3基础镜像+conda安装
只有这种方案成功了,下面提供dockerfile文件
FROM continuumio/anaconda3
RUN conda install -c conda-forge r-prophet
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK