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.

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