Docker file that's supposed to install cloud sdk and python 3.7 is skipping the cloud sdk and only running the python3.7 step.
Dockerfile:
FROM google/cloud-sdk:247.0.0
FROM python:3.7
WORKDIR /test
COPY . .
RUN python3 -m pip install -U pip
- build image:
docker build -t test -t test .
check python3.7 installation:docker run test python3 --version
. output:Python 3.7.9
- check gcloudsdk installation:
docker run test gcloud version
. output:docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"gcloud\": executable file not found in $PATH": unknown. ERRO[0000] error waiting for container: context canceled