Skip to content

Commit 69de66d

Browse files
committed
🔥 Remove unused workaround
Python 3.7 and 3.8 are EOL since a while ago
1 parent 4ee10aa commit 69de66d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

templates/alpine.Dockerfile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ FROM python:{{ python_image }} AS builder
66
# Install node prereqs, nodejs and yarn
77
# Ref: https://raw.githubusercontent.com/nodejs/docker-node/master/Dockerfile-alpine.template
88
# Ref: https://yarnpkg.com/en/docs/install
9-
{% if python == "3.7" or python == "3.8" %}
10-
# poetry: Workaround for missing cffi musllinux wheels on olds pythons. Ref: https://foss.heptapod.net/pypy/cffi/-/issues/509
11-
RUN apk add gcc musl-dev libffi-dev
12-
RUN pip install cffi
13-
RUN find /root/.cache/pip/wheels -name '*.whl' -exec cp {} / +
14-
{% endif %}
159
RUN apk add curl
1610
# FIXME: no arm + musl build yet
1711
# Ref: https://github.com/nodejs/unofficial-builds/pull/59
@@ -34,9 +28,4 @@ RUN pip install -U pip pipenv uv
3428
# Mimic what https://install.python-poetry.org does without the flexibility (platforms, install sources, etc).
3529
ENV VENV=/opt/poetryvenv
3630
RUN python -m venv $VENV && $VENV/bin/pip install -U pip wheel
37-
{% if python == "3.7" or python == "3.8" %}
38-
# Workaround for missing cffi musllinux wheels on older pythons
39-
COPY --from=builder /*.whl /
40-
RUN $VENV/bin/pip install /*.whl && rm /*.whl
41-
{% endif %}
4231
RUN $VENV/bin/pip install poetry && ln -s $VENV/bin/poetry /usr/local/bin/poetry

0 commit comments

Comments
 (0)