Reworked docker. minified image from 344 -> 15 Mb

pull/993/head
Konstantin Zolotarev 6 years ago
parent 99b70a1b65
commit b63c22d6f9
  1. 4
      .dockerignore
  2. 4
      docker/Dockerfile
  3. 2
      docker/Makefile

@ -3,3 +3,7 @@ deps
apps/block_scout_web/assets/node_modules apps/block_scout_web/assets/node_modules
apps/explorer/node_modules apps/explorer/node_modules
test test
.git
.circleci
logs
apps/*/test

@ -6,10 +6,6 @@ EXPOSE 4000
ENV PORT=4000 \ ENV PORT=4000 \
MIX_ENV="prod" \ MIX_ENV="prod" \
ETHEREUM_JSONRPC_VARIANT="ganache" \
ETHEREUM_JSONRPC_HTTP_URL="http://host.docker.internal:7545" \
ETHEREUM_JSONRPC_WEB_SOCKET_URL="ws://host.docker.internal:7545" \
DATABASE_URL="postgresql://postgres:@host.docker.internal:5432/explorer?ssl=false" \
SECRET_KEY_BASE="RMgI4C1HSkxsEjdhtGMfwAHfyT6CKWXOgzCboJflfSm4jeAlic52io05KB6mqzc5" SECRET_KEY_BASE="RMgI4C1HSkxsEjdhtGMfwAHfyT6CKWXOgzCboJflfSm4jeAlic52io05KB6mqzc5"
# Cache elixir deps # Cache elixir deps

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