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.

80 lines
1.6 KiB

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