Appendix A: Dockerfile Listing
The Dockerfile listed below was used to build the Docker image described earlier in this guide.
#base image FROM ubuntu:20.04 MAINTAINER LDK-Team "ldk-team@thalesgroup.com" #working directory WORKDIR /lms #expose ports EXPOSE 1947 EXPOSE 80 COPY aksusbd_8.52-1_amd64.deb /lms RUN apt-get update && \ #libmariadb.so.3 serves as database client library and is required for LM # to connect to MySQL apt-get install -y libmariadb3 && \ dpkg -x aksusbd_8.52-1_amd64.deb / && \ groupadd lms_group && \ useradd -g lms_group lms_user && \ chown -R lms_user:lms_group /var/hasplm && \ chown -R lms_user:lms_group /etc/hasplm && \ chmod +x /usr/sbin/hasplmd_x86_64 #user with less privilege USER lms_user #option "-f" makes the service a foreground process instead of a # background process ENTRYPOINT ["/usr/sbin/hasplmd_x86_64","-f"]