forked from bcgov/von-network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (27 loc) · 926 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ahsan57/von-image:node-1.12-6-py36
ARG user=indy
ARG LOG_LEVEL=info
ARG RUST_LOG=warning
ENV LOG_LEVEL=$LOG_LEVEL
ENV RUST_LOG=$RUST_LOG
USER root
RUN apt-get update -y && \
apt-get install -y \
build-essential \
xz-utils
USER $user
ADD config ./config
ADD server/requirements.txt server/
# Here we need to upgrade pip in order to intsall IndyVDR binary
# However, this causes issue with 'plenum' package (for example: https://github.com/bcgov/von-network/issues/238)
# So we need to downgrade to pip 9.0.3 after requirements install
RUN pip install --no-cache-dir aiohttp~=3.5.0
RUN pip3 install -U pip && \
pip install --no-cache-dir -r server/requirements.txt && \
python -m pip install pip==9.0.3
ADD --chown=indy:indy indy_config.py /etc/indy/
ADD --chown=indy:indy . $HOME
RUN chmod +x scripts/init_genesis.sh
RUN mkdir -p \
$HOME/cli-scripts \
&& chmod -R ug+rw $HOME/cli-scripts