forked from sigp/anchor
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from magick93/unstable
Unstable
- Loading branch information
Showing
4 changed files
with
41 additions
and
93 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM rust:1.78.0-bullseye AS builder | ||
RUN apt-get update && apt-get -y upgrade && apt-get install -y cmake libclang-dev | ||
COPY . lighthouse | ||
ARG FEATURES | ||
ARG PROFILE=release | ||
ARG CARGO_USE_GIT_CLI=true | ||
ENV FEATURES=$FEATURES | ||
ENV PROFILE=$PROFILE | ||
ENV CARGO_NET_GIT_FETCH_WITH_CLI=$CARGO_USE_GIT_CLI | ||
RUN cd lighthouse && make | ||
|
||
FROM ubuntu:22.04 | ||
RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-recommends \ | ||
libssl-dev \ | ||
ca-certificates \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
COPY --from=builder /usr/local/cargo/bin/lighthouse /usr/local/bin/lighthouse |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This image is meant to enable cross-architecture builds. | ||
# It assumes the lighthouse binary has already been | ||
# compiled for `$TARGETPLATFORM` and moved to `./bin`. | ||
FROM --platform=$TARGETPLATFORM ubuntu:22.04 | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
libssl-dev \ | ||
ca-certificates \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
COPY ./bin/anchor /usr/local/bin/anchor |