forked from bcgov/von-network
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (25 loc) · 857 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
FROM bcgovimages/von-image:node-1.12-6
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 \
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 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