diff --git a/Dockerfile b/Dockerfile index f10cd36..12697ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,21 +3,20 @@ FROM ubuntu:22.04 # Install Boost C++ Libraries and necessary tools RUN apt-get update && \ - apt-get install -y libboost-all-dev insserv nano curl + apt-get install -y libboost-all-dev nano curl # Install Node.js and npm RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \ apt-get install -y nodejs # Copy the inCompass SDK package to the container -COPY docs/gcf1-global_3.1.0-2_ubuntu22.04-amd64.debb /tmp/ +COPY docs/gcf1-global_3.1.0-2_ubuntu22.04-amd64.deb /tmp/ # Install the inCompass SDK RUN dpkg -i /tmp/gcf1-global_3.1.0-2_ubuntu22.04-amd64.deb || apt-get install -y -f # Copy init script for the service and daemonize -RUN cp -p /usr/local/gcf1/sbin/gcf1 /etc/init.d/ && \ - insserv gcf1 +RUN cp -p /usr/local/gcf1/sbin/gcf1 /etc/init.d/ # Configure the SDK RUN sed -i 's|FC_DL_PATH=.*|FC_DL_PATH=/dl104/get.cgi|' /usr/local/gcf1/etc/gcf1.conf && \ @@ -30,7 +29,6 @@ RUN sed -i 's|FC_DL_PATH=.*|FC_DL_PATH=/dl104/get.cgi|' /usr/local/gcf1/etc/gcf1 sed -i 's|HYBRID_USER_AGENT=.*|HYBRID_USER_AGENT=CSUX_blackdice|' /usr/local/gcf1/etc/gcf1.conf # Copy the Node.js application to the container -RUN mkdir /srv WORKDIR /srv