Closed martindekov closed 4 years ago
@alexellis @LucasRoesler Some comments:
RUN apk --no-cache add musl-dev libffi-dev gcc make ${ADDITIONAL_PACKAGE}
In addition, oddly, some investigation shows that the libs are installed in the base python:3.7-alpine image.
EDIT: These are the runtime libraries and not related to the dev/source files needed. Ooops.
Using python:3.7-alpine (image id 16f919b9ecd5)
docker run -it 16f919b9ecd5 sh
/ # ls -la /usr/lib
...
drwxr-xr-x 2 root root 4096 Apr 24 22:03 libffi-3.2.1
lrwxrwxrwx 1 root root 15 Apr 24 22:03 libffi.so.6 -> libffi.so.6.0.4
-rwxr-xr-x 1 root root 30424 Nov 15 16:01 libffi.so.6.0.4
...
/ # whoami
root
/ # env|sort
GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568
HOME=/root
HOSTNAME=bde6d170a2dd
LANG=C.UTF-8
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/
PYTHON_GET_PIP_SHA256=421ac1d44c0cf9730a088e337867d974b91bdce4ea2636099275071878cc189e
PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/d59197a3c169cef378a22428a3fa99d33e080a5d/get-pip.py
PYTHON_PIP_VERSION=20.0.2
PYTHON_VERSION=3.8.2
SHLVL=1
TERM=xterm
I haven't done any real research to find out how new this issue is, but it does look to be some kind of issue with the Alpine release.
I can also confirm this and that @Jeff-Lowrey's change does fix the build. @Jeff-Lowrey would you be willing to propose a PR?
@LucasRoesler Even though it's a very very quick fix, I probably don't have time in the next few days to work with a real PR.
Ok, i am will submit an update that will
1) standardize to waitress so that we don't have to worry about this, pure python all the way, and 2) update of-watchdog 3) and make sure each docker python image is on the latest 3.7, armf 3.6, and 2.7
Decription
When trying to build function with the:
python3-flask
template the 15 step fails with this error:The step which fails is:
which installs:
I see flask succeeds being fetched, but
gevent
fails.Full logs
The full logs are the following:
Steps to reproduce