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.

88 lines
1.7 KiB

  1. FROM lsiobase/alpine:3.6
  2. MAINTAINER saarg
  3. # set version label
  4. ARG BUILD_DATE
  5. ARG VERSION
  6. LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
  7. # install build packages
  8. RUN \
  9. apk add --no-cache --virtual=build-dependencies \
  10. bzr \
  11. curl \
  12. gcc \
  13. g++ \
  14. libusb-dev \
  15. linux-headers \
  16. make \
  17. libressl-dev \
  18. pcsc-lite-dev \
  19. tar && \
  20. # install runtime packages
  21. apk add --no-cache \
  22. libcrypto1.0 \
  23. libssl1.0 \
  24. libusb \
  25. ccid \
  26. pcsc-lite \
  27. pcsc-lite-libs && \
  28. # compile oscam from source
  29. bzr branch lp:oscam /tmp/oscam-svn && \
  30. cd /tmp/oscam-svn && \
  31. ./config.sh \
  32. --enable all \
  33. --disable \
  34. CARDREADER_DB2COM \
  35. CARDREADER_INTERNAL \
  36. CARDREADER_STINGER \
  37. CARDREADER_STAPI \
  38. CARDREADER_STAPI5 \
  39. IPV6SUPPORT \
  40. LCDSUPPORT \
  41. LEDSUPPORT \
  42. READ_SDT_CHARSETS && \
  43. make \
  44. CONF_DIR=/config \
  45. DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
  46. NO_PLUS_TARGET=1 \
  47. OSCAM_BIN=/usr/bin/oscam \
  48. pcsc-libusb && \
  49. # fix broken permissions from pcscd install.
  50. chown root:root \
  51. /usr/sbin/pcscd && \
  52. chmod 755 \
  53. /usr/sbin/pcscd && \
  54. # install PCSC drivers for OmniKey devices
  55. mkdir -p \
  56. /tmp/omnikey && \
  57. curl -o \
  58. /tmp/omnikey.tar.gz -L \
  59. https://www.hidglobal.com/sites/default/files/drivers/ifdokccid_linux_x86_64-v4.2.8.tar.gz && \
  60. tar xzf \
  61. /tmp/omnikey.tar.gz -C \
  62. /tmp/omnikey --strip-components=2 && \
  63. cd /tmp/omnikey && \
  64. ./install && \
  65. # fix group for card readers and add abc to dialout group
  66. groupmod -g 24 cron && \
  67. groupmod -g 16 dialout && \
  68. usermod -a -G 16 abc && \
  69. # cleanup
  70. apk del --purge \
  71. build-dependencies && \
  72. rm -rf \
  73. /tmp/*
  74. # copy local files
  75. COPY root/ /
  76. # Ports and volumes
  77. EXPOSE 8888
  78. VOLUME /config