Created
January 26, 2023 18:01
-
-
Save conorsch/51a4961aac544940a0d632eb00009e1e to your computer and use it in GitHub Desktop.
container spec for building Penumbra under Ubuntu 20.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:focal as builder | |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
build-essential \ | |
clang \ | |
libssl-dev \ | |
pkg-config \ | |
git \ | |
curl | |
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
RUN mkdir /app && git clone https://github.com/penumbra-zone/penumbra /app | |
WORKDIR /app | |
ARG GIT_REF=041-callirrhoe | |
RUN git fetch --tags | |
RUN git checkout "${GIT_REF}" | |
RUN . ~/.cargo/env && cargo build --release | |
FROM ubuntu:focal | |
COPY --from=builder /app/target/release/pd /app/target/release/pcli /usr/local/bin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment