From 887799962f152e77dcdeadd780f7efd8cd21855c Mon Sep 17 00:00:00 2001 From: philip Date: Mon, 20 Dec 2021 11:01:39 +0300 Subject: [PATCH] Couldn't get `python setup.py install` to work without it fussing: ``` => => # Processing dependencies for cic-cache==0.3.1 => => # Searching for eth-contract-registry~=0.7.1a2 => => # Reading https://pypi.org/simple/eth-contract-registry/ => => # Couldn't retrieve index page for 'eth-contract-registry' => => # Scanning index of all packages (this may take a while) => => # Reading https://pypi.org/simple/ ``` --- apps/cic-cache/docker/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/cic-cache/docker/Dockerfile b/apps/cic-cache/docker/Dockerfile index d269d3fb..c36b1301 100644 --- a/apps/cic-cache/docker/Dockerfile +++ b/apps/cic-cache/docker/Dockerfile @@ -4,9 +4,9 @@ FROM $DOCKER_REGISTRY/cic-base-images:python-3.8.6-dev-e8eb2ee2 COPY requirements.txt . -ARG EXTRA_PIP_INDEX_URL="https://pip.grassrootseconomics.net" +ARG EXTRA_PIP_INDEX_URL=https://pip.grassrootseconomics.net ARG EXTRA_PIP_ARGS="" -ARG PIP_INDEX_URL="https://pypi.org/simple" +ARG PIP_INDEX_URL=https://pypi.org/simple RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \ pip install --index-url $PIP_INDEX_URL \ @@ -14,9 +14,9 @@ RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \ --extra-index-url $EXTRA_PIP_INDEX_URL $EXTRA_PIP_ARGS \ -r requirements.txt -COPY . . -RUN python setup.py install +COPY . . +RUN pip install . --extra-index-url $EXTRA_PIP_INDEX_URL # for db migrations COPY ./aux/wait-for-it/wait-for-it.sh ./