-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
33 lines (25 loc) · 883 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
# build with "export DOCKER_BUILDKIT=1"
FROM python:3.6 AS build
RUN apt-get update && \
apt-get -y install gcc g++ linux-headers-amd64 libffi-dev libgnutls28-dev && \
rm -rf /var/lib/apt/lists/*
COPY ./ /var/interledger/
WORKDIR /var/interledger
RUN python3 setup.py develop
# For Docker compose setup, this target also compiles smart contracts
# custom CMD should migrate smart contracts and start the Interledger
FROM build AS interledger_compose
RUN apt-get update && \
apt-get -y install npm && \
rm -rf /var/lib/apt/lists/*
WORKDIR /var/interledger/solidity
RUN npm install -g npm@latest
RUN npm install
RUN npx truffle compile
WORKDIR /var/interledger/
# Run Interledger CLI demo
FROM build AS run_demo
CMD [ "python3", "demo/cli/cli.py", "local-config.cfg" ]
# Run Interledger
FROM build AS run
CMD [ "python3", "start_interledger.py", "local-config.cfg" ]