| ADD alpine-minirootfs-3.24.2-aarch64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add --no-cache python3 py3-pip && ln -sf python3 /usr/bin/python # buildkit |
| RUN /bin/sh -c addgroup -S youtube-adapter && adduser -S youtube-adapter -G youtube-adapter # buildkit |
| COPY /webhook/webhook /webhook/webhook # buildkit |
| WORKDIR /webhook/config |
| COPY hooks.json /webhook/config/ # buildkit |
| WORKDIR /scripts |
| COPY --chown=youtube-adapter:youtube-adapter ./hello.sh /scripts/ # buildkit |
| RUN /bin/sh -c chmod +x /scripts/hello.sh # buildkit |
| WORKDIR /scripts/python |
| RUN /bin/sh -c pip install ytmusicapi --break-system-packages # buildkit |
| COPY --chown=youtube-adapter:youtube-adapter ./python-scripts/* /scripts/python/ # buildkit |
| RUN /bin/sh -c chmod +x /scripts/python/* # buildkit |
| CMD ["/webhook/webhook" "-hooks" "/webhook/config/hooks.json" "-verbose"] |