From d75a8e75c64e0b76336d305e5516b2d8ae2b063e Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Fri, 11 Jul 2025 14:34:38 -0500 Subject: [PATCH] docker fix for vendored submodule --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8d69170..faab470 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,9 +26,11 @@ ENV MIX_ENV="prod" # Install dependencies COPY mix.exs mix.lock ./ +# Copy vendor directory for local dependencies +COPY vendor vendor RUN mix deps.get --only $MIX_ENV -# Extract the APRS parser hash from the fetched GitHub dependency -RUN cd deps/aprs && git rev-parse HEAD | cut -c1-7 > /tmp/aprs_hash.txt +# Extract the APRS parser hash from the vendored directory +RUN cd vendor/aprs && git rev-parse HEAD | cut -c1-7 > /tmp/aprs_hash.txt RUN mix deps.compile # Copy application code