There is great effort with creating small R images based on Alpine linux here - https://github.com/r-hub/r-minimal. Looks as ideal base image for developing microservices.
In order to work with Rserve we need to build R with R shared library. Also in most of the cases it makes sense to build R with OpenMP support. These points are addressed in https://github.com/rexyai/r-minimal.
There is great effort with creating small R images based on Alpine linux here - https://github.com/r-hub/r-minimal. Looks as ideal base image for developing microservices.
In order to work with Rserve we need to build R with R shared library. Also in most of the cases it makes sense to build R with OpenMP support. These points are addressed in https://github.com/rexyai/r-minimal.