Merge pull request #1402 from mkrufky/docker-coin

Dockerfile: conditionally change coin name in gettext via environment
pull/1399/head
Andrew Cravenho 6 years ago committed by GitHub
commit c8875bc7ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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