From 531589a7f93d7fefc27b2fe1e2c901c93e537c25 Mon Sep 17 00:00:00 2001 From: Stefan Melmuk Date: Sun, 5 Jan 2025 15:55:37 +0100 Subject: [PATCH] add macros to Docker build Co-authored-by: dfunkt --- .dockerignore | 1 + docker/Dockerfile.alpine | 1 + docker/Dockerfile.debian | 1 + docker/Dockerfile.j2 | 1 + 4 files changed, 4 insertions(+) diff --git a/.dockerignore b/.dockerignore index 05c2a8e322..a9a358a3ae 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,6 +5,7 @@ !.git !docker/healthcheck.sh !docker/start.sh +!macros !migrations !src diff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpine index 88747d9795..3a4064f810 100644 --- a/docker/Dockerfile.alpine +++ b/docker/Dockerfile.alpine @@ -76,6 +76,7 @@ RUN source /env-cargo && \ # Copies over *only* your manifests and build files COPY ./Cargo.* ./rust-toolchain.toml ./build.rs ./ +COPY ./macros ./macros ARG CARGO_PROFILE=release diff --git a/docker/Dockerfile.debian b/docker/Dockerfile.debian index 788156171b..abf119e34a 100644 --- a/docker/Dockerfile.debian +++ b/docker/Dockerfile.debian @@ -116,6 +116,7 @@ RUN source /env-cargo && \ # Copies over *only* your manifests and build files COPY ./Cargo.* ./rust-toolchain.toml ./build.rs ./ +COPY ./macros ./macros ARG CARGO_PROFILE=release diff --git a/docker/Dockerfile.j2 b/docker/Dockerfile.j2 index 372be95eee..e64252e2fa 100644 --- a/docker/Dockerfile.j2 +++ b/docker/Dockerfile.j2 @@ -143,6 +143,7 @@ RUN source /env-cargo && \ # Copies over *only* your manifests and build files COPY ./Cargo.* ./rust-toolchain.toml ./build.rs ./ +COPY ./macros ./macros ARG CARGO_PROFILE=release