forked from openwallet-foundation/acapy-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (20 loc) · 839 Bytes
/
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
ARG python_version=3.10
FROM --platform=linux/amd64 python:${python_version}-slim AS base
WORKDIR /usr/src/app
# Install and configure poetry
ENV POETRY_VERSION=1.3.2
ENV POETRY_HOME=/opt/poetry
RUN apt-get update && apt-get install --yes curl && apt-get clean
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="/opt/poetry/bin:$PATH"
RUN poetry config virtualenvs.in-project true
# Setup project
COPY pyproject.toml poetry.lock README.md ./
COPY acapy_wallet_upgrade/ acapy_wallet_upgrade/
COPY tests/ tests/
RUN poetry build
FROM --platform=linux/amd64 python:${python_version}-slim AS askar-upgrade
COPY --from=base /usr/src/app/dist/acapy_wallet_upgrade-*-py3-none-any.whl /tmp/.
RUN pip install /tmp/acapy_wallet_upgrade-*-py3-none-any.whl && \
rm /tmp/acapy_wallet_upgrade-*
ENTRYPOINT /bin/bash