Fix observer-web build: use npm tailwind/esbuild instead of GitHub download.
CI / test (push) Successful in 18m45s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-10 16:16:54 +03:00
parent 755aba02ac
commit feac915454
2 changed files with 19 additions and 5 deletions
+9 -5
View File
@@ -7,19 +7,23 @@ RUN for i in 1 2 3 4 5; do \
WORKDIR /app
RUN git clone https://github.com/thiagoesteves/observer_web.git .
RUN git clone --depth 1 https://github.com/thiagoesteves/observer_web.git .
RUN mix local.hex --force && mix local.rebar --force && mix deps.get
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
RUN mkdir -p priv/static && \
touch priv/static/app.css && touch priv/static/app.js && \
cd assets && npm install && cd .. && \
cd assets && \
npm install && \
npm install --save-dev tailwindcss@4.1.0 @tailwindcss/cli @tailwindcss/forms esbuild@0.17.11 && \
cd .. && \
mix assets.build
# Копируем наш dev.exs с автоподключением к нодам EventHub
COPY docker/observer_web/dev.exs .
EXPOSE 4000
# Только запуск сервера, без ручного Node.connect
CMD elixir --sname observer_web@observer_web --cookie eventhub_cookie -S mix run --no-halt dev.exs
CMD elixir --sname observer_web@observer_web --cookie eventhub_cookie -S mix run --no-halt dev.exs