Dockerfile25 lines · 760 chars FROM ubuntu:22.04
# Disable prompts during package installation.
ARG DEBIAN_FRONTEND=noninteractive
# Install required packages.
RUN apt-get update && apt-get install -y --no-install-recommends \
curl ca-certificates git build-essential python3 python3-pip aria2 zstd lz4 jq \
&& rm -rf /var/lib/apt/lists/*
# Prepare application directory
WORKDIR /opt/ink-node
# Copy repository source for build context
COPY . /opt/ink-node
# Try to build from common project sources if a build script exists
RUN if [ -f "Makefile" ]; then make -C .; \
elif [ -f "scripts/build.sh" ]; then bash scripts/build.sh; \
elif [ -f "package.json" ]; then npm ci --silent; \
else :; fi
# Default to an interactive shell for debugging or manual run
CMD ["/bin/bash"]