From 8faf6bee0d0953cf4d4b9d1619aaa5267dcfc728 Mon Sep 17 00:00:00 2001 From: sd Date: Wed, 26 Jun 2024 11:02:24 +0200 Subject: [PATCH] improve and speed up container release build --- Dockerfile | 14 +++++++++++++- justfile | 19 +++++++++++-------- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 44e16959..5ec9fadc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,8 +17,20 @@ RUN echo "Building on $BUILDPLATFORM for $TARGETOS/$TARGETARCH in $MODE mode wit RUN mkdir -p out && mkdir empty -COPY . . +COPY data ./data +COPY migrations ./migrations +COPY src ./src +COPY static ./static +COPY templates ./templates +COPY tls ./tls +COPY .env . +COPY Cargo.lock . +COPY Cargo.toml . +COPY rauthy.cfg . +COPY rauthy.deploy.cfg . +COPY rauthy.test.cfg . #RUN --mount=type=cache,target=/usr/local/cargo/registry <