fix(docker): crash loop fallback и observer-web на IFT
CI / test (push) Failing after 11m40s

fallback: default_type вне if-блока nginx. observer-web: Hex/deps.compile в образе, без dev-watchers в контейнере.
This commit is contained in:
2026-07-12 11:12:16 +03:00
parent 09ecfdff1e
commit a8e6dcb8f5
3 changed files with 25 additions and 46 deletions
+5 -2
View File
@@ -9,7 +9,7 @@ WORKDIR /app
RUN git clone --depth 1 https://github.com/thiagoesteves/observer_web.git .
RUN mix local.hex --force && mix local.rebar --force && mix deps.get
RUN mix local.hex --force && mix local.rebar --force && mix deps.get && mix deps.compile
COPY docker/observer_web/build-assets.config.exs config/build-assets.config.exs
RUN printf '\nimport_config "build-assets.config.exs"\n' >> config/config.exs
@@ -30,10 +30,13 @@ RUN for i in 1 2 3 4 5; do \
echo "apk retry $i/5..."; sleep 15; \
done
RUN mix local.hex --force && mix local.rebar --force
WORKDIR /app
COPY --from=builder /app /app
COPY docker/observer_web/dev.exs ./dev.exs
EXPOSE 4000
CMD elixir --sname observer_web@observer_web --cookie eventhub_cookie -S mix run --no-halt dev.exs
ENV RELEASE_COOKIE=eventhub_cookie
CMD elixir --sname observer_web@observer_web --cookie "${RELEASE_COOKIE}" -S mix run --no-halt dev.exs