diff --git a/Dockerfile b/Dockerfile index c7c0e695a..5fab5a6a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ -FROM rust:1.39.0 - - +FROM rust:1.39.0 AS builder COPY . lighthouse RUN cd lighthouse && make && cargo clean + +FROM debian:buster-slim +RUN apt-get update && apt-get install -y libssl-dev +COPY --from=builder /usr/local/cargo/bin/lighthouse /usr/local/bin/lighthouse