2020-07-31 05:00:39 +00:00
|
|
|
FROM rust:1.45.1 AS builder
|
2020-06-06 06:39:42 +00:00
|
|
|
RUN apt-get update && apt-get install -y cmake
|
2019-11-25 04:48:24 +00:00
|
|
|
COPY . lighthouse
|
2020-07-31 05:00:39 +00:00
|
|
|
ARG PORTABLE
|
|
|
|
ENV PORTABLE $PORTABLE
|
2020-03-04 03:28:02 +00:00
|
|
|
RUN cd lighthouse && make
|
2020-07-31 05:00:39 +00:00
|
|
|
RUN cd lighthouse && make install-lcli
|
2019-12-20 07:30:38 +00:00
|
|
|
|
|
|
|
FROM debian:buster-slim
|
2020-01-19 20:49:59 +00:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
libssl-dev \
|
|
|
|
ca-certificates \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2019-12-20 07:30:38 +00:00
|
|
|
COPY --from=builder /usr/local/cargo/bin/lighthouse /usr/local/bin/lighthouse
|
2020-03-04 03:28:02 +00:00
|
|
|
COPY --from=builder /usr/local/cargo/bin/lcli /usr/local/bin/lcli
|