Dockerfile.debian.armhf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim
  2. # Docker build arguments
  3. ARG SOURCE_DIR=/jellyfin
  4. ARG ARTIFACT_DIR=/dist
  5. # Docker run environment
  6. ENV SOURCE_DIR=/jellyfin
  7. ENV ARTIFACT_DIR=/dist
  8. ENV DEB_BUILD_OPTIONS=noddebs
  9. ENV ARCH=amd64
  10. ENV IS_DOCKER=YES
  11. # Prepare Debian build environment
  12. RUN apt-get update -yqq \
  13. && apt-get install -yqq --no-install-recommends \
  14. debhelper gnupg devscripts build-essential mmv
  15. # Prepare the cross-toolchain
  16. RUN dpkg --add-architecture armhf \
  17. && apt-get update -yqq \
  18. && apt-get install -yqq --no-install-recommends cross-gcc-dev \
  19. && TARGET_LIST="armhf" cross-gcc-gensource 9 \
  20. && cd cross-gcc-packages-amd64/cross-gcc-9-armhf \
  21. && apt-get install -yqq --no-install-recommends\
  22. gcc-9-source libstdc++-9-dev-armhf-cross \
  23. binutils-aarch64-linux-gnu bison flex libtool gdb \
  24. sharutils netbase libmpc-dev libmpfr-dev libgmp-dev \
  25. systemtap-sdt-dev autogen expect chrpath zlib1g-dev \
  26. zip binutils-arm-linux-gnueabihf libc6-dev:armhf \
  27. linux-libc-dev:armhf libgcc1:armhf libcurl4-openssl-dev:armhf \
  28. libfontconfig1-dev:armhf libfreetype6-dev:armhf libssl-dev:armhf \
  29. liblttng-ust0:armhf libstdc++-9-dev:armhf
  30. # Link to build script
  31. RUN ln -sf ${SOURCE_DIR}/deployment/build.debian.armhf /build.sh
  32. VOLUME ${SOURCE_DIR}/
  33. VOLUME ${ARTIFACT_DIR}/
  34. ENTRYPOINT ["/build.sh"]