Oscam is an Open Source Conditional Access Module software used for descrambling DVB transmissions using smart cards. It's both a server and a client.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
1.8 KiB

  1. FROM lsiobase/ubuntu:bionic as buildstage
  2. ############## build stage ##############
  3. # environment settings
  4. ARG DEBIAN_FRONTEND="noninteractive"
  5. RUN \
  6. echo "**** install build packages ****" && \
  7. apt-get update && \
  8. apt-get install -y \
  9. build-essential \
  10. bzr \
  11. libpcsclite-dev \
  12. libssl-dev \
  13. libusb-1.0-0-dev
  14. RUN \
  15. echo "**** fetch oscam source ****" && \
  16. bzr branch lp:oscam /tmp/oscam-svn
  17. RUN \
  18. echo "**** compile oscam ****" && \
  19. cd /tmp/oscam-svn && \
  20. ./config.sh \
  21. --enable all \
  22. --disable \
  23. CARDREADER_DB2COM \
  24. CARDREADER_INTERNAL \
  25. CARDREADER_STINGER \
  26. CARDREADER_STAPI \
  27. CARDREADER_STAPI5 \
  28. IPV6SUPPORT \
  29. LCDSUPPORT \
  30. LEDSUPPORT \
  31. READ_SDT_CHARSETS && \
  32. make \
  33. CONF_DIR=/config \
  34. DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
  35. NO_PLUS_TARGET=1 \
  36. OSCAM_BIN=/usr/bin/oscam \
  37. pcsc-libusb
  38. ############## runtime stage ##############
  39. FROM lsiobase/ubuntu:bionic
  40. # set version label
  41. ARG BUILD_DATE
  42. ARG VERSION
  43. LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
  44. LABEL maintainer="saarg"
  45. # environment settings
  46. ARG DEBIAN_FRONTEND="noninteractive"
  47. RUN \
  48. echo "**** install runtime packages ****" && \
  49. apt-get update && \
  50. apt-get install -y \
  51. libccid \
  52. libpcsclite1 \
  53. libusb-1.0-0 \
  54. pcscd \
  55. udev && \
  56. echo "**** install PCSC drivers ****" && \
  57. mkdir -p \
  58. /tmp/omnikey && \
  59. curl -o \
  60. /tmp/omnikey.tar.gz -L \
  61. https://www.hidglobal.com/sites/default/files/drivers/ifdokccid_linux_x86_64-v4.2.8.tar.gz && \
  62. tar xzf \
  63. /tmp/omnikey.tar.gz -C \
  64. /tmp/omnikey --strip-components=2 && \
  65. cd /tmp/omnikey && \
  66. ./install && \
  67. echo "**** cleanup ****" && \
  68. rm -rf \
  69. /tmp/* \
  70. /var/lib/apt/lists/* \
  71. /var/tmp/*
  72. # copy buildstage and local files
  73. COPY --from=buildstage /usr/bin/oscam /usr/bin/
  74. COPY --from=buildstage /usr/bin/oscam.debug /usr/bin/
  75. COPY root/ /
  76. # Ports and volumes
  77. EXPOSE 8888
  78. VOLUME /config