Debug and fix aprs dependency compilation
Use compile.protocols and compile.elixir to avoid dependency checking. Also add debug output to see if aprs is being compiled properly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
3c4b06dd0c
commit
161562d130
1 changed files with 6 additions and 7 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -49,17 +49,16 @@ COPY priv/gleam priv/gleam
|
|||
# Compile dependencies first (including vendor/aprs)
|
||||
RUN mix deps.compile
|
||||
|
||||
# Compile the application without running gleam_compile
|
||||
# First, temporarily remove the compile alias from mix.exs
|
||||
RUN sed -i 's/compile: \["gleam_compile", "compile"\],/# compile: ["gleam_compile", "compile"],/' mix.exs
|
||||
# Check if aprs was compiled
|
||||
RUN ls -la _build/prod/lib/aprs/ebin/ || echo "aprs not found"
|
||||
|
||||
# Now compile the full application
|
||||
RUN mix compile
|
||||
|
||||
# Copy Gleam BEAM files manually after compilation
|
||||
# Copy Gleam BEAM files before compiling the main app
|
||||
RUN mkdir -p _build/prod/lib/aprsme/ebin && \
|
||||
cp priv/gleam/*.beam _build/prod/lib/aprsme/ebin/ || true
|
||||
|
||||
# Compile only the Elixir files without dependency checking
|
||||
RUN mix compile.protocols && mix compile.elixir
|
||||
|
||||
# Install Node.js for asset building
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||
apt-get install -y nodejs && \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue