There is a dockerfile
that we are using to configure python version X
. The dockerfile is being used in circle ci
to build the image and then push to gcr. I want to create another image of python version Y
. The question is should i put in the same dockerfile
or a separate dockerfile
.
If its in same dockerfile then how would i trigger different builds? I am looking at this answer, the think which is confusing me that i can tag the image at first line i.e., FROM gcr.io/google-appengine/python:2019-08-07-184603 as python2.7
, how would i make sure that certain commands to build this image are ran against it and then other commands ran against python3.7
image.
P.S: Would prefer if i don't have to use docker-compse.