fallback: default_type вне if-блока nginx. observer-web: Hex/deps.compile в образе, без dev-watchers в контейнере.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user