Dockerfile.debian 512 B

123456789101112131415161718192021222324252627
  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. && apt-get install -y debhelper mmv git curl devscripts
  15. # Link to build script
  16. RUN ln -sf ${SOURCE_DIR}/deployment/build.debian /build.sh
  17. VOLUME ${SOURCE_DIR}
  18. VOLUME ${ARTIFACT_DIR}
  19. ENTRYPOINT ["/build.sh"]