cic-stack/apps/contract-migration/docker/Dockerfile

35 lines
1.1 KiB
Docker
Raw Normal View History

ARG DOCKER_REGISTRY="registry.gitlab.com/grassrootseconomics"
FROM $DOCKER_REGISTRY/cic-base-images:python-3.8.6-dev-e8eb2ee2
2021-01-24 21:16:22 +01: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
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
RUN mkdir -vp /usr/local/etc/cic
2021-11-17 09:20:31 +01:00
# create secrets directory
RUN mkdir -vp pgp/keys
2021-11-17 09:20:31 +01:00
COPY requirements.txt .
#RUN apt-get install libffi-dev
ARG pip_index_url=https://pypi.org/simple
2021-12-10 15:55:50 +01:00
ARG EXTRA_PIP_INDEX_URL="https://pip.grassrootseconomics.net"
ARG EXTRA_PIP_ARGS=""
ARG PIP_INDEX_URL="https://pypi.org/simple"
ARG pip_trusted_host=pypi.org
RUN pip install --index-url $PIP_INDEX_URL \
2021-08-24 20:43:39 +02:00
--pre \
--extra-index-url $EXTRA_PIP_INDEX_URL $EXTRA_PIP_ARGS \
2022-01-04 17:01:01 +01:00
-r requirements.txt
RUN pip freeze
COPY . .
RUN chmod +x *.sh