updated dockerfile
This commit is contained in:
@@ -3,21 +3,20 @@ FROM ubuntu:22.04
|
|||||||
|
|
||||||
# Install Boost C++ Libraries and necessary tools
|
# Install Boost C++ Libraries and necessary tools
|
||||||
RUN apt-get update && \
|
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
|
# Install Node.js and npm
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \
|
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
|
|
||||||
# Copy the inCompass SDK package to the container
|
# 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
|
# Install the inCompass SDK
|
||||||
RUN dpkg -i /tmp/gcf1-global_3.1.0-2_ubuntu22.04-amd64.deb || apt-get install -y -f
|
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
|
# Copy init script for the service and daemonize
|
||||||
RUN cp -p /usr/local/gcf1/sbin/gcf1 /etc/init.d/ && \
|
RUN cp -p /usr/local/gcf1/sbin/gcf1 /etc/init.d/
|
||||||
insserv gcf1
|
|
||||||
|
|
||||||
# Configure the SDK
|
# Configure the SDK
|
||||||
RUN sed -i 's|FC_DL_PATH=.*|FC_DL_PATH=/dl104/get.cgi|' /usr/local/gcf1/etc/gcf1.conf && \
|
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
|
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
|
# Copy the Node.js application to the container
|
||||||
RUN mkdir /srv
|
|
||||||
|
|
||||||
WORKDIR /srv
|
WORKDIR /srv
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user