FROM alpine:edge as base
RUN ["apk", "add", "--no-cache", "icecast"]
COPY ["icecast.xml", "/app/icecast.xml"]
FROM scratch
COPY --from=base / /
USER 1443:1443
ENTRYPOINT ["/usr/bin/icecast", "-c", "/app/icecast.xml"]