-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (34 loc) · 2.24 KB
/
Copy pathDockerfile
File metadata and controls
46 lines (34 loc) · 2.24 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
FROM ghcr.io/openwallet-foundation/acapy-agent:py3.13-1.6.0 AS base
# Install and Configure Poetry
USER root
ENV POETRY_VERSION=2.1.1
ENV POETRY_HOME=/opt/poetry
RUN apt-get update && apt-get install -y curl && apt-get clean
RUN curl -sSL https://install.python-poetry.org | python -
ENV PATH="/opt/poetry/bin:$PATH"
RUN poetry config virtualenvs.in-project true
# Setup project
RUN mkdir traction_plugins && touch traction_plugins/__init__.py
COPY --chown=aries:aries traction_innkeeper/pyproject.toml README.md ./
# copy over our local plugins code so we can build/install them
# these should come from github or some version, published location
COPY --chown=aries:aries traction_innkeeper ./traction_innkeeper
RUN poetry install --only main
# Make site packages location more accessible (for use with volumes)
RUN ln -s "$(poetry env info -p)"/lib/python3.13/site-packages site-packages
FROM ghcr.io/openwallet-foundation/acapy-agent:py3.13-1.6.0
COPY --from=base --chown=aries:aries /home/aries/.venv /home/aries/.venv
ENV PATH="/home/aries/.venv/bin:$PATH"
COPY --chown=aries:aries docker/default.yml ./
COPY --chown=aries:aries traction_innkeeper/traction_innkeeper traction_plugins/traction_innkeeper
RUN pip install git+https://github.com/openwallet-foundation/acapy-plugins@1.6.0#subdirectory=basicmessage_storage
RUN pip install git+https://github.com/openwallet-foundation/acapy-plugins@1.6.0#subdirectory=connection_update
RUN pip install git+https://github.com/openwallet-foundation/acapy-plugins@1.6.0#subdirectory=multitenant_provider
RUN pip install git+https://github.com/openwallet-foundation/acapy-plugins@1.6.0#subdirectory=rpc
RUN pip install git+https://github.com/openwallet-foundation/acapy-plugins@1.6.0#subdirectory=connections
RUN pip install git+https://github.com/openwallet-foundation/acapy-plugins@1.6.0#subdirectory=webvh
# TODO: Update main tag once the present_proof and issue_credential plugins are released
RUN pip install --no-deps git+https://github.com/openwallet-foundation/acapy-plugins@1.6.0#subdirectory=present_proof
RUN pip install --no-deps git+https://github.com/openwallet-foundation/acapy-plugins@1.6.0#subdirectory=issue_credential
ENTRYPOINT ["/bin/bash", "-c", "aca-py \"$@\"", "--"]
CMD ["start", "--arg-file", "default.yml"]