docker can’t build because of alpine error
Build docker with flag “–network host” solved the issue. Here is the link.
Build docker with flag “–network host” solved the issue. Here is the link.
For those who are still experiencing problems installing cryptography==2.1.4 in Alpine 3.7 like this: writing manifest file ‘src/cryptography.egg-info/SOURCES.txt’ running build_ext generating cffi module ‘build/temp.linux-x86_64-2.7/_padding.c’ creating build/temp.linux-x86_64-2.7 generating cffi module ‘build/temp.linux-x86_64-2.7/_constant_time.c’ generating cffi module ‘build/temp.linux-x86_64-2.7/_openssl.c’ building ‘_openssl’ extension creating build/temp.linux-x86_64-2.7/build creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7 gcc -fno-strict-aliasing -Os -fomit-frame-pointer -g -DNDEBUG -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c … Read more
Using multiple package systems is usually a very bad idea, for many reasons. Packages are likely to collide and break and you’ll end up with much greater mess than you’ve started with. See this excellent answer for more detail: Is there a pitfall of using multiple package managers? A more feasible approach would be troubleshooting … Read more
I’ve been having a bit of trouble with this myself and, long story short, I would encourage you to ask if it’s really worth the hassle. Numpy is enormous when you start adding things to the stack like pandas, gpus, and scipy so the benefit of building it on alpine is limited, the savings over … Read more
On Alpine Linux, the not found error is a typical symptom of dynamic link failure. It is indeed a rather confusing error by musl’s ldd linker. Most of the world Linux software is linked against glibc, the GNU libc library (libc provides the standard C library and POSIX API). Most Linux distributions are based on … Read more
The default shell in Alpine Linux is ash. Ash will only read the /etc/profile and ~/.profile files if it is started as a login shell sh -l. To force Ash to source the /etc/profile or any other script you want upon its invocation as a non login shell, you need to setup an environment variable … Read more
From this issue on the Docker’s repo: This was “broken” while updating our base from alpine:3.11 to alpine:3.12. In order to fix it you need to specify the version of Python directly, e.g.: apk add python2 // or apk add python3
Also stated in my post update, here’s the Dockerfile I used to get things working: FROM node:8.12-alpine RUN apk add g++ make py3-pip EXPOSE 8080 RUN mkdir /app WORKDIR /app COPY . /app RUN npm install CMD [“npm”, “start”] If your requirements demand your image minimize space, consider installing necessary packages with RUN apk add … Read more
Install musl-dev (in addition to the gcc compiler) apk add musl-dev You need to install it separately because in Alpine Linux, the package GCC doesn’t depend on libc-dev for good reason: You can use gcc to compile things without libc, for example hypervisors firmware etc. And August Klein also noted that in Debian, GCC only … Read more
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 Since the musl and glibc so are compatible, you can make this symlink and it will fix the missing dependency.