jerbaroo / bridge-sim

Python library for concrete slab bridge simulation.
MIT License
1 stars 0 forks source link

Smaller Docker image #170

Closed jerbaroo closed 3 years ago

jerbaroo commented 4 years ago

The Docker image we build is based on ubuntu:18.04 but it could be built on something a bit more lightweight.

jerbaroo commented 3 years ago

While doing this also check if the timezone and environment variable parts of the Dockerfile can be removed.

rozsasarpi commented 3 years ago

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.

jerbaroo commented 3 years ago

I think the biggest problem will be installing OpenSees, anything other than that should be alright.

jerbaroo commented 3 years ago

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.

jerbaroo commented 3 years ago

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.