mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-10 02:45:44 +00: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
15 lines
286 B
Go
15 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
|
|
}
|