sacundim / covid-19-puerto-rico

COVID-19 data and graphs for Puerto Rico
13 stars 6 forks source link

Improved Dockerfiles #62

Closed sacundim closed 1 year ago

sacundim commented 1 year ago

Do more of the building in a "fat" Python image and copy the venv over to a "slim" app image. The way I learned this lesson is by experimenting around with e.g. Poetry git dependencies and finding I couldn't build stuff because my app stage base image was a python:slim that doesn't have git installed, and because I do the pip install from that stage I had to go to the "fat" images for the app—not good...