2023-09-21 04:17:25 +00:00
|
|
|
FROM rust:1.69.0-bullseye AS builder
|
2023-08-02 00:59:34 +00:00
|
|
|
RUN apt-get update && apt-get -y upgrade && apt-get install -y cmake libclang-dev
|
2019-11-25 04:48:24 +00:00
|
|
|
COPY . lighthouse
|
2022-01-31 22:55:03 +00:00
|
|
|
ARG FEATURES
|
2023-05-03 04:12:11 +00:00
|
|
|
ARG PROFILE=release
|
2023-10-19 05:19:23 +00:00
|
|
|
ARG CARGO_USE_GIT_CLI=true
|
2022-01-31 22:55:03 +00:00
|
|
|
ENV FEATURES $FEATURES
|
2023-05-03 04:12:11 +00:00
|
|
|
ENV PROFILE $PROFILE
|
2023-10-19 05:19:23 +00:00
|
|
|
ENV CARGO_NET_GIT_FETCH_WITH_CLI=$CARGO_USE_GIT_CLI
|
2020-03-04 03:28:02 +00:00
|
|
|
RUN cd lighthouse && make
|
2019-12-20 07:30:38 +00:00
|
|
|
|
2022-05-31 06:09:12 +00:00
|
|
|
FROM ubuntu:22.04
|
2021-06-30 02:06:49 +00:00
|
|
|
RUN apt-get update && apt-get -y upgrade && apt-get install -y --no-install-recommends \
|
2020-01-19 20:49:59 +00:00
|
|
|
libssl-dev \
|
|
|
|
ca-certificates \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2023-08-02 00:59:34 +00:00
|
|
|
COPY --from=builder /usr/local/cargo/bin/lighthouse /usr/local/bin/lighthouse
|