Closed jerbaroo closed 3 years ago
While doing this also check if the timezone and environment variable parts of the Dockerfile can be removed.
I have good experience starting with python:3.7-slim
and adding additional software to it, I use it in CI/CD: unit testing and building documentation. Not sure if it would be enough for this repo but maybe.
I think the biggest problem will be installing OpenSees, anything other than that should be alright.
I will mark this as low priority because the time to download the current docker image relative to the run time of simulations should be negligible in most cases.
Most of the filesize comes from dependencies related to OpenSees, not the base image size. Furthermore, moving to a smaller base image e.g. alpine
increases the build time of the resulting Docker image. Dockerfile has been improved and the image is now 530 MB down from 700.
The Docker image we build is based on
ubuntu:18.04
but it could be built on something a bit more lightweight.