Docker build improvements (minor)
RUN git clone -b ${VERSION} --depth=1 https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git/
performing a shallow clone e.g. git clone --depth=1 ...
reduces the amount of data downloaded from the git server, since we don't need all the git history and commits, just the last for the branch/tag.
$ git clone -b main https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git/ snowflake-git
$ git clone -b main --depth=1 https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git/ snowflake-git-shallow
$ du -h -s snowflake-git snowflake-git-shallow
3.4M snowflake-git
1.1M snowflake-git-shallow
not a huge improvement in this case, but as the git history grows so will the overhead improvement.
Edited by guest42069