# debian.sh --arch 'amd64' out/ 'bookworm' '@1742169600' |
LABEL author=Torsten Widmann maintainer=info@goover.de |
LABEL org.opencontainers.image.source=https://github.com/pterodactyl/yolks |
LABEL org.opencontainers.image.licenses=MIT |
ENV DEBIAN_FRONTEND=noninteractive |
RUN /bin/sh -c apt update && apt upgrade -y # buildkit |
RUN /bin/sh -c apt install -y ffmpeg curl python3 iproute2 libjemalloc2 tini # buildkit |
RUN /bin/sh -c curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/youtube-dl # buildkit |
RUN /bin/sh -c chmod a+rx /usr/local/bin/youtube-dl # buildkit |
RUN /bin/sh -c update-alternatives --install /usr/bin/python python /usr/bin/python3 1000 # buildkit |
RUN /bin/sh -c useradd -m -d /home/container container # buildkit |
USER container |
ENV USER=container HOME=/home/container |
WORKDIR /home/container |
STOPSIGNAL SIGINT |
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh # buildkit |
RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
ENTRYPOINT ["/usr/bin/tini" "-g" "--"] |
CMD ["/entrypoint.sh"] |