snypy / snypy-docker

Docker setup for running SnyPy
MIT License
34 stars 3 forks source link

Optimize api image build #9

Closed nezhar closed 2 years ago

nezhar commented 2 years ago

This PR introduces some optimization that decrease the api image with about 1/3 in disk size by using a multi-stage build for cloning the code:

Image Version Size
ghcr.io/snypy/snypy-backend v1.0-beta.1 193MB
ghcr.io/snypy/snypy-backend v1.0-beta.0 299MB