I've created a shell script that first runs a Python program to perform data pre-processing and then I'm trying to run an R program. I'm using Docker images for this:
FROM r-base:latest
FROM python
COPY . /usr/local/src/scripts
WORKDIR /usr/local/src/scripts
CMD ["./thisscript.sh"]
Inside thisscript.sh I've use the R CMD ... syntax for running my R script. But when I run the docker image, I get the following error:
./thisscript.sh: line 8: R: command not found
Any help?