Code: Select all
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
ca-certificates \
gnupg \
build-essential \
libssl3 \
libstdc++6 && \
rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | \
gpg --dearmor -o /usr/share/keyrings/nodesource.gpg && \
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" \
> /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/local/bin/hotpocket
COPY hotpocket/hpcore /usr/local/bin/hotpocket/hpcore
COPY hotpocket/hpfs /usr/local/bin/hotpocket/hpfs
COPY hotpocket/hpws /usr/local/bin/hotpocket/hpws
COPY hotpocket/evernode-license.pdf /usr/local/bin/hotpocket/
RUN chmod +x /usr/local/bin/hotpocket/*
COPY lib/libblake3.so \
/usr/local/lib/
COPY lib/libssl.so.1.1 \
/usr/lib/x86_64-linux-gnu/
COPY lib/libcrypto.so.1.1 \
/usr/lib/x86_64-linux-gnu/
RUN ldconfig
RUN mkdir -p /contract
WORKDIR /contract
ENTRYPOINT ["/usr/local/bin/hotpocket/hpcore"]