-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathDockerfile
40 lines (29 loc) · 1.69 KB
/
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
34
35
36
37
38
39
40
FROM ghcr.io/openwallet-foundation/acapy-agent:py3.12-1.1.0 AS base
# Install and Configure Poetry
USER root
ENV POETRY_VERSION=1.8.3
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 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.6/site-packages site-packages
FROM ghcr.io/openwallet-foundation/acapy-agent:py3.12-1.1.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/[email protected]#subdirectory=basicmessage_storage
RUN pip install git+https://github.com/openwallet-foundation/[email protected]#subdirectory=connection_update
RUN pip install git+https://github.com/openwallet-foundation/[email protected]#subdirectory=multitenant_provider
RUN pip install git+https://github.com/openwallet-foundation/[email protected]#subdirectory=rpc
ENTRYPOINT ["/bin/bash", "-c", "aca-py \"$@\"", "--"]
CMD ["start", "--arg-file", "default.yml"]