2024-09-18 16:19:08 +00:00
|
|
|
# =====================================================
|
2024-11-27 00:21:12 +00:00
|
|
|
# Zenith Full Node Wallet and RPC Server
|
2024-09-18 16:19:08 +00:00
|
|
|
# =====================================================
|
|
|
|
FROM ubuntu:22.04
|
|
|
|
|
|
|
|
RUN apt update
|
|
|
|
|
|
|
|
# Set environment variables to non-interactive mode for installation
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
# Update the package list and install necessary packages
|
2024-11-27 00:21:12 +00:00
|
|
|
RUN apt-get install -qqy xterm x11-apps
|
|
|
|
|
2024-09-18 16:19:08 +00:00
|
|
|
RUN apt-get install -y \
|
2024-11-27 00:21:12 +00:00
|
|
|
libxss-dev \
|
|
|
|
libxrandr-dev \
|
2024-09-18 16:19:08 +00:00
|
|
|
libsecp256k1-dev \
|
2024-11-27 00:21:12 +00:00
|
|
|
xclip \
|
2024-09-18 16:19:08 +00:00
|
|
|
libglew-dev \
|
|
|
|
libsdl2-dev
|
|
|
|
|
|
|
|
RUN apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Create a new user (e.g., "zenusr") and set a password
|
2024-11-27 00:21:12 +00:00
|
|
|
RUN useradd -ms /bin/bash zenusr
|
2024-09-18 16:19:08 +00:00
|
|
|
RUN echo "1234\n1234\n" | passwd zenusr
|
|
|
|
|
|
|
|
RUN mkdir /home/zenusr/Zenith
|
|
|
|
RUN chown zenusr:zenusr -R /home/zenusr/Zenith
|
|
|
|
|
|
|
|
COPY scripts/bash_rc_adm /root/.bashrc
|
|
|
|
COPY scripts/bash_rc_usr /home/zenusr/.bashrc
|
|
|
|
COPY scripts/welcome.sh /etc/profile.d/welcome.sh
|
|
|
|
RUN chmod +x /etc/profile.d/welcome.sh
|
2024-11-27 00:21:12 +00:00
|
|
|
#
|
|
|
|
COPY bin/zenith /usr/local/bin
|
|
|
|
COPY bin/startzen /usr/local/bin
|
2024-09-18 16:19:08 +00:00
|
|
|
COPY bin/zenithserver /usr/local/bin
|
2024-11-27 00:21:12 +00:00
|
|
|
#
|
2024-09-18 16:19:08 +00:00
|
|
|
COPY lib/librustzcash_wrapper.so /usr/local/lib
|
|
|
|
COPY Downloads/libc-bin_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/
|
|
|
|
COPY Downloads/libc-dev-bin_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/
|
|
|
|
COPY Downloads/libc6_2.38-1ubuntu6_amd64.deb /home/zenusr/Downloads/
|
|
|
|
|
|
|
|
RUN echo '#!/bin/bash\ncd /home/zenusr/Downloads\ndpkg -i libc6_2.38-1ubuntu6_amd64.deb libc-bin_2.38-1ubuntu6_amd64.deb libc-dev-bin_2.38-1ubuntu6_amd64.deb' > /usr/local/bin/updlibc
|
|
|
|
RUN chmod +x /usr/local/bin/updlibc
|
|
|
|
RUN updlibc
|
|
|
|
|
|
|
|
# Set the user to "zenusr"
|
|
|
|
USER zenusr
|
|
|
|
WORKDIR /home/zenusr
|
|
|
|
ENV USER=zenusr
|
|
|
|
|
2024-11-27 00:21:12 +00:00
|
|
|
CMD ["startzen"]
|