FROM --platform=$TARGETOS/$TARGETARCH rust:1.60-slim LABEL author="Kyle Speight" maintainer="kyle@kyle-hosting.xyz" LABEL org.opencontainers.image.source="https://github.com/kylehost/yolks" LABEL org.opencontainers.image.licenses=MIT RUN apt update \ && apt -y install git dnsutils curl iproute2 ffmpeg tini pkg-config \ && useradd -m -d /home/container container USER container ENV USER=container HOME=/home/container CARGO_HOME=/home/container/.cargo WORKDIR /home/container STOPSIGNAL SIGINT COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] CMD ["/entrypoint.sh"]