From 72206632403b1f3b57d34e02f03ad0b3658dc77f Mon Sep 17 00:00:00 2001 From: meeg_leeto Date: Thu, 14 Apr 2022 23:39:40 +0100 Subject: [PATCH] fix: Dockerfile did not make Docker happy --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 242adf2..d1aca39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -# Create the build container to compile -FROM rust:latest as builder +# Prepare container +FROM rust:slim-buster RUN USER=root cargo new --bin lonk WORKDIR lonk @@ -14,8 +14,6 @@ RUN rm src/*.rs # Compile the source COPY ./src ./src RUN cargo build +RUN cp /lonk/target/${PROFILE:-debug}/lonk . -# Execution container -FROM scratch -COPY --from=build /lonk/target/release/lonk . -CMD ["./lonk"] \ No newline at end of file +CMD ["./lonk"] \ No newline at end of file