-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
30 lines (20 loc) · 822 Bytes
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.8.3
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 askar_tools/ askar_tools/
RUN poetry build
FROM --platform=linux/amd64 python:${python_version}-slim AS askar-tools
COPY --from=base /usr/src/app/dist/askar_tools-*-py3-none-any.whl /tmp/.
RUN pip install /tmp/askar_tools-*-py3-none-any.whl && \
rm /tmp/askar_tools-*
ENTRYPOINT /bin/bash