Dockerfile:
RUN apk add --no-cache --virtual .setusergroups-buildeps abuild build-base git autoconf automake && \
git clone https://github.com/tokuhirom/setusergroups.git /opt/setusergroups && \
(cd /opt/setusergroups && autoreconf -i && ./configure && make && make install) && \
rm -r /opt/setusergroups && \
apk del .setusergroups-buildeps
Dockerfile:
ADD https://raw.githubusercontent.com/h2o/h2o/master/share/h2o/setuidgid /usr/local/bin/
RUN apk add --no-cache perl && chmod +x /usr/local/bin/setuidgid