Currently, FOCA was tested for Python versions >=3.6,<=3.9, but there is only a single Dockerfile, using python:3.6-slim-stretch as its base image. Ideally, app developers should be able to pick which of the supported Python versions they want to use, and thus pick the corresponding FOCA Docker image as the base image for their application.
To do so, prepare Dockerfiles for each of the supported minor Python versions in a directory docker, named Dockerfile_py3.6 etc:
[x] Python 3.6
[x] Python 3.7
[x] Python 3.8
[x] Python 3.9
Then, adapt the Travis CI configuration in .travis.yml to build and push all of the images with tags v0.6.0-py3.6 etc., and with tag latest always pointing to the latest FOCA image built for the latest Python version (currently 3.9).
Currently, FOCA was tested for Python versions
>=3.6,<=3.9
, but there is only a single Dockerfile, usingpython:3.6-slim-stretch
as its base image. Ideally, app developers should be able to pick which of the supported Python versions they want to use, and thus pick the corresponding FOCA Docker image as the base image for their application.To do so, prepare Dockerfiles for each of the supported minor Python versions in a directory
docker
, namedDockerfile_py3.6
etc:Then, adapt the Travis CI configuration in
.travis.yml
to build and push all of the images with tagsv0.6.0-py3.6
etc., and with taglatest
always pointing to the latest FOCA image built for the latest Python version (currently3.9
).