File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff 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 %}
159RUN 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).
3529ENV VENV=/opt/poetryvenv
3630RUN 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 %}
4231RUN $VENV/bin/pip install poetry && ln -s $VENV/bin/poetry /usr/local/bin/poetry
You can’t perform that action at this time.
0 commit comments