forked from openwallet-foundation/owl-agent-test-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.acapy
31 lines (23 loc) · 1016 Bytes
/
Dockerfile.acapy
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 python:3.7-slim
RUN apt-get update \
&& apt-get install -y git gnupg2 software-properties-common curl \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 \
&& add-apt-repository 'deb https://repo.sovrin.org/sdk/deb bionic stable' \
&& apt-get update \
&& apt-get install -y libindy libnullpay
RUN mkdir -p /aries-backchannels
WORKDIR /aries-backchannels
COPY python/requirements.txt python/
COPY acapy/requirements-latest.txt acapy/
RUN pip install -r acapy/requirements-latest.txt && pip install -r python/requirements.txt
# Copy the necessary files from the AATH Backchannel sub-folders
COPY python python
COPY acapy acapy
COPY data ./
# aca-py is in /usr/local/bin. The Backchannel is looking for it in ./bin, create a link to it in ./bin
RUN mkdir -p ./bin
RUN ln -s /usr/local/bin/aca-py ./bin/aca-py
ENV PYTHONPATH=/aries-backchannels
ENV RUNMODE=docker
RUN ./bin/aca-py --version > ./acapy-version.txt
ENTRYPOINT ["python", "acapy/acapy_backchannel.py"]