FROM alpine:latest # install compile dependencies RUN apk add --no-cache libxmu-dev libx11-dev pkgconf rust cargo python3 make xclip jq # run as non-root RUN adduser --system -u 1000 rooster-user WORKDIR /home/rooster-docker-test/data ENTRYPOINT ["/usr/bin/rooster"] # compile ADD . /home/rooster-docker-test/data RUN cargo install --all-features --debug --path /home/rooster-docker-test/data/rooster --root /usr # run as non-root USER rooster-user