Skip to content

Instantly share code, notes, and snippets.

@conorsch
Created January 26, 2023 18:01
Show Gist options
  • Save conorsch/51a4961aac544940a0d632eb00009e1e to your computer and use it in GitHub Desktop.
Save conorsch/51a4961aac544940a0d632eb00009e1e to your computer and use it in GitHub Desktop.
container spec for building Penumbra under Ubuntu 20.04
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