Skip to content

Instantly share code, notes, and snippets.

@blaggacao
Created May 31, 2016 03:44
Show Gist options
  • Save blaggacao/0cb0356615222cae0b71e32205fccde7 to your computer and use it in GitHub Desktop.
Save blaggacao/0cb0356615222cae0b71e32205fccde7 to your computer and use it in GitHub Desktop.
Creation of a python debug symbols build
# --- 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