Cannot “pip install cryptography” in Docker Alpine Linux 3.3 with OpenSSL 1.0.2g and Python 2.7

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

Docker Node Alpine Image Build Fails on node-gyp

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

GCC can’t find stdio.h in Alpine Linux

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)