File tree 4 files changed +8
-6
lines changed
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ FROM jormungandr:latest as jorm
8
8
9
9
# stage 3
10
10
FROM python as poetry
11
- RUN pip install poetry==1.8.0
11
+ RUN pip install poetry==2.0.1
12
12
13
13
# Add python codebase
14
14
COPY . /voting
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ builder:
21
21
zlib1g-dev
22
22
23
23
# Install Poetry
24
- RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.0
24
+ RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.0.1
25
25
26
26
SAVE IMAGE --cache-hint
27
27
42
42
RUN poetry config installer.max-workers 10
43
43
# Install package dependencies without the voting_node package
44
44
RUN poetry install --only main --no-root
45
-
45
+ RUN poetry self add poetry-plugin-export
46
+
46
47
# Copy the voting_node source code
47
48
COPY --dir voting_node README.md ./
48
49
Original file line number Diff line number Diff line change 11
11
RUN apt-get update && \
12
12
apt-get install -y --no-install-recommends curl
13
13
14
- RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.0
14
+ RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.0.1
15
15
16
16
COPY pyproject.toml .
17
17
COPY poetry.lock .
Original file line number Diff line number Diff line change 15
15
apt-get install -y --no-install-recommends curl build-essential libxml2-dev libxslt-dev zlib1g-dev python3-lxml
16
16
17
17
# Install Poetry
18
- RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.0
18
+ RUN curl -sSL https://install.python-poetry.org | python3 - --version 2.0.1
19
19
# Set path to poetry
20
20
ENV PATH= /root/.local/bin:$PATH
21
21
28
28
RUN poetry env use python
29
29
RUN poetry config installer.max-workers 10
30
30
RUN poetry install --no-cache --no-root
31
-
31
+ RUN poetry self add poetry-plugin-export
32
+
32
33
# Build the distribution wheels and save them as artifacts
33
34
RUN poetry export --without-hashes -f requirements.txt --output requirements.txt
34
35
RUN poetry build --no-cache -f wheel
You can’t perform that action at this time.
0 commit comments