<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">вт, 26 сент. 2017 г. в 0:08, E. Schmidbauer <<a href="mailto:eschmidbauer@gmail.com" target="_blank">eschmidbauer@gmail.com</a>>:<br></div></div><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">wow, this is great, can't wait to try it out!<div>one question though, the Dockerfile is using `scratch` but the folder structure indicates `alpine` (pkg/kamailio/alpine_docker)</div><div>should this file path be renamed?</div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div>Image compilation is splited on two phases<br>pre_build - really getting sources and compiling using alpine image. Please look <a href="https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/alpine_docker/hooks/pre_build">https://github.com/kamailio/kamailio/blob/master/pkg/kamailio/alpine_docker/hooks/pre_build</a></div><div>and docker docs <a href="https://docs.docker.com/docker-cloud/builds/advanced/" target="_blank">https://docs.docker.com/docker-cloud/builds/advanced/</a>. At this stage created tar archive with filesystem image<br></div><div><br></div><div>And second stage where filesystem images is placed on scratch layer. This allow separate build state where installed many development tools and image creation where simple decompressed image filesystem.</div><div><br></div><div>Image really build using alpine linux dist. scratch layer used to create minimal image with only required libs.</div><div><br></div><div>This image image also contains tcpdump and dumppcap tools. So you can easy debug SIP traffic if you prefer to used docker bridge or swarm network.</div><div><br></div><div>Sergey</div></div></div></div></div>