From 2445d3462e234196fbadcb2e31a30a8f4d75be3b Mon Sep 17 00:00:00 2001 From: antifallobst Date: Fri, 24 Nov 2023 18:02:22 +0100 Subject: [PATCH] fix: restructured dockerfile in hope of some gods in my rooms heater to fix this issue --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5bce1a0..4faa5b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,3 @@ -FROM debian:bullseye-slim as final - -RUN apt-get update; apt-get install -y libssl3; rm -rf /var/lib/apt/lists/* - FROM rust:latest as build RUN apt-get update; \ @@ -29,7 +25,9 @@ RUN rm ./target/release/deps/nerdcult_api* RUN SQLX_OFFLINE=true cargo build --release -FROM final +FROM debian:bullseye-slim + +RUN apt-get update; apt-get install -y libssl3; rm -rf /var/lib/apt/lists/* COPY --from=build /nerdcult_api/target/release/nerdcult_api /bin/nerdcult_api