got Docker image down to 138mb from 1.8gb (#749)

This commit is contained in:
mkinney 2019-12-19 23:30:38 -08:00 committed by Paul Hauner
parent 41d6d5fafd
commit 3acb3cc640

View File

@ -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