fix: restructured dockerfile in hope of some gods in my rooms heater to fix this issue
Build and Deploy / build-docker (push) Successful in 5m10s Details

This commit is contained in:
antifallobst 2023-11-24 18:02:22 +01:00
parent 12fa0fac5f
commit 2445d3462e
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
1 changed files with 3 additions and 5 deletions

View File

@ -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 FROM rust:latest as build
RUN apt-get update; \ RUN apt-get update; \
@ -29,7 +25,9 @@ RUN rm ./target/release/deps/nerdcult_api*
RUN SQLX_OFFLINE=true cargo build --release 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 COPY --from=build /nerdcult_api/target/release/nerdcult_api /bin/nerdcult_api