From 5d87459ecc6debeda44a064a3b77a3bd557f555c Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 22 Mar 2026 16:47:35 -0500 Subject: [PATCH] fix: force recompile in Docker build to prevent stale BEAM files (#119) Incremental compilation can miss schema field removals in dependent modules, causing undefined_column errors in production. Reviewed-on: https://git.mcintire.me/graham/towerops-web/pulls/119 --- k8s/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/Dockerfile b/k8s/Dockerfile index af5c61d6..0aadd874 100644 --- a/k8s/Dockerfile +++ b/k8s/Dockerfile @@ -80,9 +80,9 @@ RUN cd c_src && make COPY lib lib -# Compile the release +# Compile the release (--force prevents stale BEAM files from schema changes) RUN --mount=type=cache,target=/root/.mix \ - mix compile + mix compile --force COPY assets assets