CosmWasm / optimizer

Dockerfile and script to deterministically produce the smallest possible Wasm for your Rust contract
Apache License 2.0
120 stars 59 forks source link

Include git in images #81

Closed snoyberg closed 2 years ago

snoyberg commented 2 years ago

This is useful for projects which use the Cargo config:

git-fetch-with-cli = true

This can be necessary for working with some private repositories as dependencies.

snoyberg commented 2 years ago

Sorry, this wasn't quite ready, will open a new PR later.

webmaster128 commented 2 years ago

Diff looks plausible. Could you compare the Socker image sizes after adding git?

adityakalia commented 2 years ago

Without changes: 864MB (864364317KB) With changes: 878MB (877657948KB)

snoyberg commented 2 years ago

@webmaster128 just to clarify, @adityakalia added the functionality I'd missed first time around and reopened this as #82.

webmaster128 commented 2 years ago

@snoyberg @adityakalia thank you