2021-10-20 17:02:36 +02:00
|
|
|
ARG DEV_DOCKER_REGISTRY="registry.gitlab.com/grassrootseconomics"
|
|
|
|
|
|
|
|
FROM $DEV_DOCKER_REGISTRY/cic-base-images:python-3.8.6-dev-55da5f4e
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-07-05 19:13:26 +02:00
|
|
|
WORKDIR /root
|
2021-01-24 21:16:22 +01:00
|
|
|
|
2021-04-28 06:01:58 +02:00
|
|
|
RUN touch /etc/apt/sources.list.d/ethereum.list
|
|
|
|
RUN echo 'deb http://ppa.launchpad.net/ethereum/ethereum/ubuntu bionic main' > /etc/apt/sources.list.d/ethereum.list
|
|
|
|
RUN echo 'deb-src http://ppa.launchpad.net/ethereum/ethereum/ubuntu bionic main' >> /etc/apt/sources.list.d/ethereum.list
|
2021-07-05 19:13:26 +02:00
|
|
|
RUN cat /etc/apt/sources.list.d/ethereum.list
|
2021-04-28 06:01:58 +02:00
|
|
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2A518C819BE37D2C2031944D1C52189C923F6CA9
|
|
|
|
|
2021-03-13 19:50:36 +01:00
|
|
|
RUN mkdir -vp /usr/local/etc/cic
|
|
|
|
|
|
|
|
ENV CONFINI_DIR /usr/local/etc/cic/
|
2021-07-16 15:21:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
COPY config_template/ /usr/local/etc/cic/
|
2021-07-10 17:46:14 +02:00
|
|
|
COPY requirements.txt .
|
2021-10-20 17:02:36 +02:00
|
|
|
|
|
|
|
RUN apt-get install libffi-dev
|
2021-06-03 20:43:13 +02:00
|
|
|
|
2021-07-05 12:58:08 +02:00
|
|
|
ARG pip_index_url=https://pypi.org/simple
|
2021-10-20 17:02:36 +02:00
|
|
|
ARG EXTRA_PIP_INDEX_URL="https://pip.grassrootseconomics.net:8433"
|
2021-08-17 18:52:17 +02:00
|
|
|
ARG EXTRA_PIP_ARGS=""
|
2021-10-20 17:02:36 +02:00
|
|
|
ARG PIP_INDEX_URL="https://pypi.org/simple"
|
2021-07-05 12:58:08 +02:00
|
|
|
ARG pip_trusted_host=pypi.org
|
2021-10-20 17:02:36 +02:00
|
|
|
RUN pip install --index-url $PIP_INDEX_URL \
|
2021-08-24 20:43:39 +02:00
|
|
|
--pre \
|
2021-07-05 12:58:08 +02:00
|
|
|
--force-reinstall \
|
2021-10-20 17:02:36 +02:00
|
|
|
--no-cache \
|
|
|
|
--extra-index-url $EXTRA_PIP_INDEX_URL $EXTRA_PIP_ARGS \
|
2021-07-05 19:13:26 +02:00
|
|
|
-r requirements.txt
|
2021-08-24 20:43:39 +02:00
|
|
|
|
2021-07-10 17:46:14 +02:00
|
|
|
COPY . .
|
2021-07-05 19:13:26 +02:00
|
|
|
RUN chmod +x *.sh
|