docker fix for vendored submodule

This commit is contained in:
Graham McIntire 2025-07-11 14:34:38 -05:00
parent 3ba9d8bde6
commit d75a8e75c6
No known key found for this signature in database

View file

@ -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