Dockerfile 461 B

123456789101112131415161718192021
  1. FROM alpine:3.19 as base
  2. RUN apk --update add --no-cache \
  3. build-base \
  4. python3 \
  5. pipx \
  6. ;
  7. RUN pipx install pyinstaller
  8. # Requires above step to prepare the shared venv
  9. RUN ~/.local/share/pipx/shared/bin/python -m pip install -U wheel
  10. RUN apk --update add --no-cache \
  11. scons \
  12. patchelf \
  13. binutils \
  14. ;
  15. RUN pipx install staticx
  16. WORKDIR /yt-dlp
  17. COPY entrypoint.sh /entrypoint.sh
  18. ENTRYPOINT /entrypoint.sh