2018-04-09 17:02:59 +02:00
|
|
|
ARG python_version=3.6
|
|
|
|
FROM python:${python_version}
|
2020-08-06 19:30:40 +02:00
|
|
|
LABEL maintainer "contact@ipdb.global"
|
2016-05-13 16:22:40 +02:00
|
|
|
|
2017-04-19 16:07:44 +02:00
|
|
|
RUN apt-get update \
|
2021-12-06 14:09:51 +01:00
|
|
|
&& apt-get install -y git \
|
2017-06-14 18:41:42 +02:00
|
|
|
&& pip install -U pip \
|
2017-04-19 16:07:44 +02:00
|
|
|
&& apt-get autoremove \
|
|
|
|
&& apt-get clean
|
2016-05-13 16:22:40 +02:00
|
|
|
|
2018-03-21 12:42:43 +01:00
|
|
|
ARG backend
|
2018-04-10 17:29:25 +02:00
|
|
|
ARG abci_status
|
2018-03-21 12:42:43 +01:00
|
|
|
|
|
|
|
# When developing with Python in a docker container, we are using PYTHONBUFFERED
|
|
|
|
# to force stdin, stdout and stderr to be totally unbuffered and to capture logs/outputs
|
|
|
|
ENV PYTHONUNBUFFERED 0
|
|
|
|
|
|
|
|
ENV BIGCHAINDB_DATABASE_PORT 27017
|
|
|
|
ENV BIGCHAINDB_DATABASE_BACKEND $backend
|
2017-04-19 16:07:44 +02:00
|
|
|
ENV BIGCHAINDB_SERVER_BIND 0.0.0.0:9984
|
|
|
|
ENV BIGCHAINDB_WSSERVER_HOST 0.0.0.0
|
2017-06-14 13:49:47 +02:00
|
|
|
ENV BIGCHAINDB_WSSERVER_SCHEME ws
|
2016-05-13 16:22:40 +02:00
|
|
|
|
2017-08-08 12:04:58 +02:00
|
|
|
ENV BIGCHAINDB_WSSERVER_ADVERTISED_HOST 0.0.0.0
|
|
|
|
ENV BIGCHAINDB_WSSERVER_ADVERTISED_SCHEME ws
|
|
|
|
|
2018-07-10 14:16:02 +02:00
|
|
|
ENV BIGCHAINDB_TENDERMINT_PORT 26657
|
2017-06-06 15:13:00 +02:00
|
|
|
|
2018-04-24 16:17:49 +02:00
|
|
|
ENV BIGCHAINDB_CI_ABCI ${abci_status}
|
2018-04-10 17:29:25 +02:00
|
|
|
|
2017-04-19 16:07:44 +02:00
|
|
|
RUN mkdir -p /usr/src/app
|
2016-05-13 16:22:40 +02:00
|
|
|
COPY . /usr/src/app/
|
2017-04-19 16:07:44 +02:00
|
|
|
WORKDIR /usr/src/app
|
2019-01-29 13:51:29 +01:00
|
|
|
RUN pip install -e .[dev]
|
2019-09-25 22:22:51 +02:00
|
|
|
RUN bigchaindb -y configure
|