2017-04-19 16:07:44 +02:00
|
|
|
FROM python:3.6
|
|
|
|
LABEL maintainer "dev@bigchaindb.com"
|
2016-05-13 16:22:40 +02:00
|
|
|
|
2017-04-19 16:07:44 +02:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y vim \
|
|
|
|
&& pip install pynacl \
|
|
|
|
&& apt-get autoremove \
|
|
|
|
&& apt-get clean
|
2016-05-13 16:22:40 +02:00
|
|
|
|
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
|
2016-05-13 16:22:40 +02:00
|
|
|
|
2017-06-06 15:13:00 +02:00
|
|
|
ARG backend
|
|
|
|
|
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
|
2016-05-13 16:22:40 +02:00
|
|
|
RUN pip install --no-cache-dir -e .[dev]
|
2017-06-06 15:13:00 +02:00
|
|
|
RUN bigchaindb -y configure "$backend"
|