Dockerfile.debian 581 B

12345678910111213141516171819202122232425262728
  1. ARG IMG=debian
  2. ARG TAG=buster
  3. FROM $IMG:$TAG
  4. # Docker build arguments
  5. ARG SOURCE_DIR=/jellyfin
  6. ARG ARTIFACT_DIR=/dist
  7. # Docker run environment
  8. ENV SOURCE_DIR=/jellyfin
  9. ENV ARTIFACT_DIR=/dist
  10. ENV DEB_BUILD_OPTIONS=noddebs
  11. ENV IS_DOCKER=YES
  12. # Prepare Debian build environment
  13. RUN apt-get update \
  14. && DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" \
  15. apt-get install -y debhelper mmv git curl devscripts equivs
  16. # Link to build script
  17. RUN ln -sf ${SOURCE_DIR}/deployment/build.debian /build.sh
  18. VOLUME ${SOURCE_DIR}
  19. VOLUME ${ARTIFACT_DIR}
  20. ENTRYPOINT ["/build.sh"]