mirror of
https://github.com/containers/podman.git
synced 2026-03-20 15:42:20 -04:00
This adds support for Dockerfile.in and fixes some limits issues on docker build Also adds support for podman build to read Dockerfile from stdin. cat Dockerfile | podman build -f - . Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1209 Approved by: mheon
16 lines
286 B
Go
16 lines
286 B
Go
// +build linux
|
|
|
|
package chroot
|
|
|
|
func dedupeStringSlice(slice []string) []string {
|
|
done := make([]string, 0, len(slice))
|
|
m := make(map[string]struct{})
|
|
for _, s := range slice {
|
|
if _, present := m[s]; !present {
|
|
m[s] = struct{}{}
|
|
done = append(done, s)
|
|
}
|
|
}
|
|
return done
|
|
}
|