forked from openwallet-foundation/owl-agent-test-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.acapy
34 lines (25 loc) · 1.08 KB
/
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
32
33
34
FROM python:3.9-slim-bullseye
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
ADD https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 ./jq
RUN chmod +x ./jq
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 ["bash", "acapy/ngrok-wait.sh"]