Created
May 31, 2016 03:44
-
-
Save blaggacao/0cb0356615222cae0b71e32205fccde7 to your computer and use it in GitHub Desktop.
Creation of a python debug symbols build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- Build Debug Liraries for GDB Debugging --- | |
ENV CFLAGS='-Wall -O0 -g' | |
RUN apk add --update alpine-sdk \ | |
&& adduser -G abuild -g "Alpine Package Builder" -s /bin/ash -D builder \ | |
&& echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers \ | |
&& mkdir /packages \ | |
&& chown builder:abuild /packages \ | |
&& git clone --depth 1 git://dev.alpinelinux.org/aports \ | |
&& abuild-keygen -a -i \ | |
&& cd aports/main/python | |
USER builder | |
RUN cp -r aports/main/python /packages/python \ | |
&& cd /packages/python \ | |
&& abuild-keygen -a -i \ | |
&& abuild checksum \ | |
&& abuild -r \ | |
&& abuild -i python \ | |
&& abuild -i python-dev | |
USER root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment