1
0
mirror of synced 2026-03-28 06:09:58 +01:00

Update Dockerfile

This commit is contained in:
d-two
2022-09-15 00:48:14 +02:00
committed by GitHub
parent 2939bafb06
commit aec625e366

View File

@@ -16,9 +16,7 @@ RUN \
pcsc-lite-dev \ pcsc-lite-dev \
subversion \ subversion \
tar \ tar \
shadow shadow && \
RUN \
echo "**** install runtime packages ****" && \ echo "**** install runtime packages ****" && \
apk add --no-cache \ apk add --no-cache \
ccid \ ccid \
@@ -27,9 +25,7 @@ RUN \
libssl1.1 \ libssl1.1 \
libusb \ libusb \
pcsc-lite \ pcsc-lite \
pcsc-lite-libs pcsc-lite-libs && \
RUN \
echo "**** compile oscam ****" && \ echo "**** compile oscam ****" && \
if [ -z ${OSCAM_VERSION+x} ]; then \ if [ -z ${OSCAM_VERSION+x} ]; then \
OSCAM_VERSION=$(svn info --show-item revision https://svn.streamboard.tv/oscam/trunk ); \ OSCAM_VERSION=$(svn info --show-item revision https://svn.streamboard.tv/oscam/trunk ); \
@@ -53,16 +49,12 @@ RUN \
DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \ DEFAULT_PCSC_FLAGS="-I/usr/include/PCSC" \
NO_PLUS_TARGET=1 \ NO_PLUS_TARGET=1 \
OSCAM_BIN=/usr/bin/oscam \ OSCAM_BIN=/usr/bin/oscam \
pcsc-libusb pcsc-libusb && \
RUN \
echo "**** fix broken permissions from pcscd install ****" && \ echo "**** fix broken permissions from pcscd install ****" && \
chown root:root \ chown root:root \
/usr/sbin/pcscd && \ /usr/sbin/pcscd && \
chmod 755 \ chmod 755 \
/usr/sbin/pcscd /usr/sbin/pcscd && \
RUN \
echo "**** install PCSC drivers ****" && \ echo "**** install PCSC drivers ****" && \
mkdir -p \ mkdir -p \
/tmp/omnikey && \ /tmp/omnikey && \
@@ -73,21 +65,15 @@ RUN \
/tmp/omnikey.tar.gz -C \ /tmp/omnikey.tar.gz -C \
/tmp/omnikey --strip-components=2 && \ /tmp/omnikey --strip-components=2 && \
cd /tmp/omnikey && \ cd /tmp/omnikey && \
./install ./install && \
RUN \
echo "**** create abc user and make our folders ****" && \ echo "**** create abc user and make our folders ****" && \
groupmod -g 1000 users && \ groupmod -g 1000 users && \
useradd -u 911 -U -d /config -s /bin/false abc && \ useradd -u 911 -U -d /config -s /bin/false abc && \
usermod -G users abc usermod -G users abc && \
RUN \
echo "**** fix group for card readers and add abc to dialout group ****" && \ echo "**** fix group for card readers and add abc to dialout group ****" && \
groupmod -g 24 cron && \ groupmod -g 24 cron && \
groupmod -g 16 dialout && \ groupmod -g 16 dialout && \
usermod -a -G 16 abc usermod -a -G 16 abc && \
RUN \
echo "**** cleanup ****" && \ echo "**** cleanup ****" && \
apk del --purge \ apk del --purge \
build-dependencies && \ build-dependencies && \