diff --git a/Dockerfile b/Dockerfile index 0f78669..515be89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,9 +43,12 @@ COPY rel rel # Copy Gleam source files and configuration COPY src src COPY gleam.toml gleam.toml -# Ensure pre-compiled Gleam BEAM files are available -# This helps when mix_gleam or gleam binary are not available -RUN mkdir -p priv/gleam +# Copy pre-compiled Gleam BEAM files +# This is crucial for production builds where gleam compiler is not available +COPY priv/gleam priv/gleam + +# Compile Gleam files (using pre-compiled BEAM files) +RUN mix gleam_compile # Compile assets RUN mix assets.deploy diff --git a/lib/aprsme_web/components/layouts/root.html.heex b/lib/aprsme_web/components/layouts/root.html.heex index d888d3e..222c701 100644 --- a/lib/aprsme_web/components/layouts/root.html.heex +++ b/lib/aprsme_web/components/layouts/root.html.heex @@ -64,10 +64,8 @@ - + {@inner_content} diff --git a/mix.exs b/mix.exs index b35b46c..30aabcb 100644 --- a/mix.exs +++ b/mix.exs @@ -115,8 +115,8 @@ defmodule Aprsme.MixProject do {:gettext_pseudolocalize, "~> 0.1"}, {:sentry, "~> 11.0"}, # Gleam dependencies - {:gleam_stdlib, ">= 0.60.0 and < 1.0.0", app: false, override: true}, - {:gleeunit, "~> 1.0", only: [:dev, :test], runtime: false, app: false} + {:gleam_stdlib, ">= 0.60.0 and < 1.0.0", app: false, compile: false, override: true}, + {:gleeunit, "~> 1.0", only: [:dev, :test], runtime: false, app: false, compile: false} ] end