mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00

* Basing BigchainDB docker image from `python:3.6` in `Dockerfile` and `Dockerfile-dev`. * Added ENV var for websocket interface * Optimization to Dockerfile-dev to save build time during dev/test. Pre-installing the `pynacl` dependeny in separate command so that devs do not need to wait while testing. The trade-off is that devs will need to clear (`rmi`) the image to start from scratch.
22 lines
486 B
Plaintext
22 lines
486 B
Plaintext
FROM python:3.6
|
|
LABEL maintainer "dev@bigchaindb.com"
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y vim \
|
|
&& pip install pynacl \
|
|
&& apt-get autoremove \
|
|
&& apt-get clean
|
|
|
|
VOLUME ["/data"]
|
|
WORKDIR /data
|
|
|
|
ENV BIGCHAINDB_CONFIG_PATH /data/.bigchaindb
|
|
ENV BIGCHAINDB_SERVER_BIND 0.0.0.0:9984
|
|
ENV BIGCHAINDB_WSSERVER_HOST 0.0.0.0
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
COPY . /usr/src/app/
|
|
WORKDIR /usr/src/app
|
|
RUN pip install --no-cache-dir -e .[dev]
|
|
RUN bigchaindb -y configure mongodb
|