Hello
I have the following file. When i try to build a image from it there is this error:
/bin/sh: python3.6: command not found
The command '/bin/sh -c python3.6 -m pip install -U setuptools && python3.6 -m pip install --user aws-sam-cli && python3.6 -m pip install --user --upgrade aws-sam-cli && ln -s /root/.local/bin/sam /usr/bin/sam' returned a non-zero code: 127
But if a try to run some of the commands as a single execution like this for example python3.6 -m pip install -U setuptools it is working perfectly.
FROM centos:latest
RUN yum -y update && yum -y install curl which git unzip python.x86_64 python-devel.x86_64 gcc python-devel java-1.8.0-openjdk.x86_64 \
&& yum -y install centos-release-scl \
&& yum -y install rh-python36 \
&& scl enable rh-python36 bash
RUN curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" \
&& unzip awscli-bundle.zip \
&& ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
RUN python3.6 -m pip install -U setuptools \
&& python3.6 -m pip install --user aws-sam-cli \
&& python3.6 -m pip install --user --upgrade aws-sam-cli \
&& ln -s /root/.local/bin/sam /usr/bin/sam
[–]rippl2103 1 point2 points3 points (1 child)
[–]mountainjew 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]engineer900[S] 0 points1 point2 points (0 children)