From 3acb3cc640c7a1fe4aab94ce35be1c300a4146d8 Mon Sep 17 00:00:00 2001 From: mkinney Date: Thu, 19 Dec 2019 23:30:38 -0800 Subject: [PATCH] got Docker image down to 138mb from 1.8gb (#749) --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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