-
Notifications
You must be signed in to change notification settings - Fork 516
/
Dockerfile.demo
33 lines (22 loc) · 923 Bytes
/
Dockerfile.demo
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
ARG from_image=ghcr.io/hyperledger/aries-cloudagent-python:py3.9-0.9.0
FROM ${from_image}
ENV ENABLE_PTVSD 0
ENV ENABLE_PYDEVD_PYCHARM 0
ENV PYDEVD_PYCHARM_HOST "host.docker.internal"
ENV ACAPY_DEBUG_WEBHOOKS 1
RUN mkdir -p bin && curl -L -o bin/jq \
https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && \
chmod ug+x bin/jq
# Add and install Aries Agent code
RUN pip install --no-cache-dir poetry
ADD README.md pyproject.toml poetry.lock ./
RUN poetry install --no-root --no-directory -E "askar bbs"
ADD aries_cloudagent ./aries_cloudagent
ADD scripts ./scripts
RUN pip3 install --no-cache-dir -e .
RUN mkdir demo logs && chown -R aries:aries demo logs && chmod -R ug+rw demo logs
# Add and install demo code
ADD demo/requirements.txt ./demo/requirements.txt
RUN pip3 install --no-cache-dir -r demo/requirements.txt
ADD demo ./demo
ENTRYPOINT ["bash", "-c", "demo/ngrok-wait.sh \"$@\"", "--"]