See More

FROM openwhisk/action-python-v3.7:2de7220 COPY requirements.txt requirements.txt RUN apt-get update \ # Upgrade installed packages to get latest security fixes if the base image does not contain them already. && apt-get upgrade -y --no-install-recommends \ # cleanup package lists, they are not used anymore in this image && rm -rf /var/lib/apt/lists/* \ # We do not have mysql-server installed but mysql-common contains config files (/etc/mysql/my.cnf) for it. # We need to add some dummy entries to /etc/mysql/my.cnf to sattisfy vulnerability checking of it. && echo "\n[mysqld]\nssl-ca=/tmp/ca.pem\nssl-cert=/tmp/server-cert.pem\nssl-key=/tmp/server-key.pem\n" >> /etc/mysql/my.cnf \ # install additional python modules # we pin setuptools==57.5.0, reason is that ibm_db<=3.0.4 requires 'use_2to3' during install which has been # removed from setuptools starting with the 58.x.x release. The install therefore fails with: # error in ibm_db setup command: use_2to3 is invalid. # When ibm_db is upgraded to a version that does not need 'use_2to3' anymore the pin can also be removed. && pip install --upgrade pip setuptools==57.5.0 six \ && pip install --no-cache-dir -r requirements.txt \ # Show actual python version in the build output. && echo "Actual python version is:" \ && python --version \ # Show actual /bin/proxy version in the build output, makes it easier to check if go security fixes need to be applied. && echo "Actual /bin/proxy version is:" \ && /bin/proxy -version