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/ ```
This commit is contained in:
parent
3acc3cf417
commit
887799962f
@ -4,9 +4,9 @@ FROM $DOCKER_REGISTRY/cic-base-images:python-3.8.6-dev-e8eb2ee2
|
|||||||
|
|
||||||
COPY requirements.txt .
|
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 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 \
|
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
|
||||||
pip install --index-url $PIP_INDEX_URL \
|
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 \
|
--extra-index-url $EXTRA_PIP_INDEX_URL $EXTRA_PIP_ARGS \
|
||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN python setup.py install
|
COPY . .
|
||||||
|
RUN pip install . --extra-index-url $EXTRA_PIP_INDEX_URL
|
||||||
|
|
||||||
# for db migrations
|
# for db migrations
|
||||||
COPY ./aux/wait-for-it/wait-for-it.sh ./
|
COPY ./aux/wait-for-it/wait-for-it.sh ./
|
||||||
|
Loading…
Reference in New Issue
Block a user