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

- MacOS does not allow users to mount folders from the host unless it is specified during build time. - This is needed as the container on Mac needs to access the .bigchaindb conf file residing on the host.
42 lines
1.2 KiB
Docker
42 lines
1.2 KiB
Docker
FROM ubuntu:xenial
|
|
|
|
# From http://stackoverflow.com/a/38553499
|
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
|
|
|
|
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
|
echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \
|
|
dpkg-reconfigure --frontend=noninteractive locales && \
|
|
update-locale LANG=en_US.UTF-8
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
# The `apt-get update` command executed with the install instructions should
|
|
# not use a locally cached storage layer. Force update the cache again.
|
|
# https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#run
|
|
RUN apt-get update && apt-get -y install python3 python3-pip libffi-dev \
|
|
&& pip3 install --upgrade pip \
|
|
&& pip3 install --upgrade setuptools
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
COPY . /usr/src/app/
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN pip3 install --no-cache-dir -e .
|
|
|
|
VOLUME ["/data"]
|
|
|
|
WORKDIR /data
|
|
|
|
ENV BIGCHAINDB_CONFIG_PATH /data/.bigchaindb
|
|
ENV BIGCHAINDB_SERVER_BIND 0.0.0.0:9984
|
|
# BigchainDB Server doesn't need BIGCHAINDB_API_ENDPOINT any more
|
|
# but maybe our Docker or Docker Compose stuff does?
|
|
# ENV BIGCHAINDB_API_ENDPOINT http://bigchaindb:9984/api/v1
|
|
|
|
ENTRYPOINT ["bigchaindb"]
|
|
|
|
CMD ["start"]
|