|
@@ -3,7 +3,7 @@ FROM ubuntu:24.04
|
|
|
WORKDIR /app
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
RUN apt-get update && apt-get install -y \
|
|
|
- curl \
|
|
|
|
|
|
|
+ curl screen \
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN curl -s https://api.github.com/repos/nexus-xyz/nexus-cli/releases/latest | \
|
|
RUN curl -s https://api.github.com/repos/nexus-xyz/nexus-cli/releases/latest | \
|
|
@@ -12,5 +12,9 @@ RUN curl -s https://api.github.com/repos/nexus-xyz/nexus-cli/releases/latest | \
|
|
|
cut -d '"' -f 4 | \
|
|
cut -d '"' -f 4 | \
|
|
|
xargs -I {} curl -L -o nexus-network {} && \
|
|
xargs -I {} curl -L -o nexus-network {} && \
|
|
|
chmod +x nexus-network
|
|
chmod +x nexus-network
|
|
|
|
|
+
|
|
|
|
|
+COPY entrypoint.sh entrypoint.sh
|
|
|
|
|
|
|
|
-ENTRYPOINT ["/bin/bash", "-c", "./nexus-network start --node-id ${NODE_ID}"]
|
|
|
|
|
|
|
+RUN chmod +x entrypoint.sh
|
|
|
|
|
+
|
|
|
|
|
+ENTRYPOINT ["./entrypoint.sh"]
|