diff --git a/.dockerignore b/.dockerignore index 3ff41081f..eadcb738e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,14 +2,14 @@ ** # Except these files and directories -!docker/ -!docker/Dockerfile.run_with_importer -!src/ !.cargo/ -!config/ -!Cargo.toml -!Cargo.lock -!static/ +!.git !.sqlx/ !build.rs -!proto +!Cargo.lock +!Cargo.toml +!config/ +!docker/ +!docker/Dockerfile.run_with_importer +!src/ +!static/ \ No newline at end of file diff --git a/docker/Dockerfile.run_relayer b/docker/Dockerfile.run_relayer index bf66f1b30..2ef38fc75 100644 --- a/docker/Dockerfile.run_relayer +++ b/docker/Dockerfile.run_relayer @@ -2,6 +2,7 @@ FROM rust:1.75 as builder WORKDIR /app +COPY .git /app/.git COPY build.rs /app/build.rs COPY src /app/src COPY static /app/static diff --git a/docker/Dockerfile.run_stratus b/docker/Dockerfile.run_stratus index 170922960..b2ad457d2 100644 --- a/docker/Dockerfile.run_stratus +++ b/docker/Dockerfile.run_stratus @@ -2,6 +2,7 @@ FROM rust:1.75 as builder WORKDIR /app +COPY .git /app/.git COPY build.rs /app/build.rs COPY src /app/src COPY static /app/static diff --git a/docker/Dockerfile.run_with_importer b/docker/Dockerfile.run_with_importer index 6c222d496..da808ff0f 100644 --- a/docker/Dockerfile.run_with_importer +++ b/docker/Dockerfile.run_with_importer @@ -2,6 +2,7 @@ FROM rust:1.75 as builder WORKDIR /app +COPY .git /app/.git COPY build.rs /app/build.rs COPY src /app/src COPY static /app/static diff --git a/docker/Dockerfile.run_with_importer_cached b/docker/Dockerfile.run_with_importer_cached index 20fdd5e51..a0bf32ef9 100644 --- a/docker/Dockerfile.run_with_importer_cached +++ b/docker/Dockerfile.run_with_importer_cached @@ -26,6 +26,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \ RUN rm -rf src # Copy the actual source code +COPY .git /app/.git COPY build.rs /app/build.rs COPY src /app/src COPY static /app/static