inkonchain-node
SUCCESS
10m 47s
History Source
SummaryIterations1Transcript17Dockerfile
Dockerfile27 lines · 871 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 curl wget git rsync build-essential openssl python3 python3-pip aria2 zstd lz4 ca-certificates

# Install Go.
RUN curl -sSL https://golang.org/dl/go1.21.6.linux-amd64.tar.gz | tar -v -C /usr/local -xz
RUN ln -s /usr/local/go/bin/go /usr/bin/go

# Install Foundry.
RUN curl -L https://foundry.paradigm.xyz | bash
RUN /root/.foundry/bin/foundryup
RUN rsync -a /root/.foundry/bin/ /usr/bin/

# Copy project source code into container workspace
COPY . /src
WORKDIR /src

# Build step: attempt to build the project from source if a Makefile is present
RUN if [ -f Makefile ]; then make -C /src all; fi

# Default to a bash shell to allow interactive exploration or runtime build steps.
CMD ["/bin/bash"]