Dockerfile: conditionally change coin name in gettext via env

pull/1402/head
Michael Ira Krufky 6 years ago
parent 5da0fc5fb0
commit a55b97e92f
  1. 3
      docker/Dockerfile
  2. 2
      docker/Makefile

@ -19,6 +19,9 @@ RUN mix do deps.get, deps.compile
ADD . .
ARG COIN
RUN if [ "$COIN" != "" ]; then sed -i s/"POA"/"${COIN}"/g apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po; fi
# Run forderground build and phoenix digest
RUN mix compile

@ -53,7 +53,7 @@ ifdef HAS_BLOCKSCOUT_IMAGE
@echo "==> Image exist. Using $(DOCKER_IMAGE)"
else
@echo "==> No image found trying to build one..."
@docker build -f ./Dockerfile -t $(DOCKER_IMAGE) ../
@docker build --build-arg COIN="$(COIN)" -f ./Dockerfile -t $(DOCKER_IMAGE) ../
endif
migrate: build postgres

Loading…
Cancel
Save