Files
EventHubBack/docker/ObserverWeb.Dockerfile

27 lines
741 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM erlang:28-alpine
RUN apk add --no-cache \
elixir \
nodejs \
npm \
git \
inotify-tools
WORKDIR /app
RUN git clone https://github.com/thiagoesteves/observer_web.git .
RUN mix local.hex --force && mix local.rebar --force && mix deps.get
RUN mkdir -p priv/static && \
touch priv/static/app.css && touch priv/static/app.js && \
cd assets && npm install && 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