FROM ubuntu:20.04 ARG DEBIAN_FRONTEND=noninteractive COPY etc/init.d/cscored /etc/init.d/cscored RUN apt-get update && apt-get install -y \ wget \ unzip \ usbutils \ pkg-config \ libudev-dev \ libboost-dev \ libudev-dev \ libgtk2.0-0 \ libxshmfence1 \ libasound2-dev \ libgdk-pixbuf2.0-0 \ libglib2.0-0 \ libgtk-3-0 \ man-db RUN apt-get install -y openjdk-8-jdk ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk ENV PATH=$PATH:$JAVA_HOME/bin RUN java -version RUN wget "https://www.zebra.com/content/dam/zebra_new_ia/en-us/software/developer-tools/scanner-sdk-for-linux/SDK_for_Linux_v4.4.1-27_Debian_Packages_x86_64bit_C11.zip" \ && unzip "SDK_for_Linux_v4.4.1-27_Debian_Packages_x86_64bit_C11.zip" \ && cd SDK_for_Linux_v4.4.1-27_Debian_Packages_x86_64bit_C11 \ && pwd \ && dpkg -i zebra-scanner-corescanner_4.4.1-27_amd64.deb \ && dpkg -i zebra-scanner-corescanner-dbg_4.4.1-27_amd64.deb \ && dpkg -i zebra-scanner-devel_4.4.1-27_amd64.deb \ && dpkg -i zebra-scanner-javapos_4.4.1-29_amd64.deb RUN wget "https://www.zebra.com/content/dam/zebra_new_ia/en-us/software/utilities/scanner-management-solution-for-linux/SMS_for_Linux_v1.3.1-17_Debian_Packages_x86_64bit_C11.zip" \ && unzip "SMS_for_Linux_v1.3.1-17_Debian_Packages_x86_64bit_C11.zip" \ && cd SMS_for_Linux_v1.3.1-17_Debian_Packages_x86_64bit_C11 \ && dpkg -i zebra-scanner-management-solution-1.3.1-17-amd64.deb RUN apt-get -f install COPY ./entrypoint.sh / RUN chmod 755 /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]