My dockerfile is as below:
FROM bash:4.4
COPY prerequisites_ubuntu.sh /temp/prerequisites_ubuntu.sh
RUN /temp/prerequisites_ubuntu.sh
prerequisites_ubuntu.sh :
FROM ubuntu:latest
apt-get update
apt-get install -y coreutils git-core ssh scons build-essential g++ libglib2.0-dev unzip uuid-dev python-dev autotools-dev gcc libjansson-dev cmake
When I do docker build "docker build --rm --no-cache -t my_image ." It gives error as
/temp/prerequisites_ubuntu.sh: line 1: FROM: not found
/temp/prerequisites_ubuntu.sh: line 3: apt-get: not found
/temp/prerequisites_ubuntu.sh: line 4: apt-get: not found
The prerequisites_ubuntu.sh file will change for RaspberryPI or other platform
FROMis no bash command.bash:4.4not haveFROMcommand and also not haveapt,prerequisites_ubuntu.shnot a valid bash file.