From 46cc979c6c5e46f89a6eff27987b6d2bb4c762da Mon Sep 17 00:00:00 2001 From: Zeeshan Lakhani Date: Tue, 8 Aug 2023 16:52:32 +0900 Subject: [PATCH] chore: proc macro add to docker (#233) --- .dockerignore | 1 + docker/Dockerfile | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index ce53d187..9330738d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,6 +4,7 @@ !**/Cargo.lock !**/build.rs !**/src +!**/src/test_utils !**/config !**/migrations !diesel.toml diff --git a/docker/Dockerfile b/docker/Dockerfile index 8a2e7404..e6ad3662 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -24,12 +24,19 @@ RUN cargo init --lib homestar-core && \ RUN echo "fn main() {}" > ./homestar-runtime/src/main.rs +RUN mkdir -p ./homestar-runtime/src/test_utils/proc_macro +RUN mkdir -p ./homestar-runtime/migrations + # copy cargo.* COPY Cargo.lock Cargo.toml diesel.toml ./ COPY ../homestar-core/Cargo.toml ./homestar-core/ COPY ../homestar-functions/Cargo.toml ./homestar-functions/ COPY ../homestar-wasm/Cargo.toml ./homestar-wasm/ -COPY ../homestar-runtime/Cargo.toml ../homestar-runtime/migrations ./homestar-runtime/ +COPY ../homestar-runtime/Cargo.toml ./homestar-runtime/ +COPY ../homestar-runtime/migrations ./homestar-runtime/migrations +COPY ../homestar-runtime/src/test_utils/proc_macro ./homestar-runtime/src/test_utils/proc_macro + +ENTRYPOINT ["/bin/bash"] # cache depencies RUN mkdir .cargo