From 1f47da3d73addf06d4c39cdd8490ef8ee0c77d30 Mon Sep 17 00:00:00 2001 From: Kaczanowski Mateusz Date: Sat, 9 May 2020 00:56:53 +0200 Subject: [PATCH] Dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 95fc657..f44687d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rustlang/rust:nightly +FROM rustlang/rust:nightly as builder RUN apt-get update && apt-get install -y apt-utils software-properties-common lsb-release RUN bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" @@ -8,4 +8,7 @@ COPY . . RUN cargo install --path . +FROM debian:buster-slim +COPY --from=builder /usr/local/cargo/bin/pastebin /usr/local/bin/pastebin + CMD ["pastebin"]