Skip to content

Instantly share code, notes, and snippets.

@rupert rupert/Dockerfile
Created Feb 9, 2018

Embed
What would you like to do?
pyflame Dockerfile
FROM python:3.6-stretch
RUN apt-get update \
&& apt-get -y install autoconf automake autotools-dev g++ pkg-config libtool make unzip
RUN cd /tmp && \
wget -O pyflame-master.zip https://github.com/uber/pyflame/archive/master.zip \
&& unzip pyflame-master.zip \
&& cd pyflame-master \
&& ./autogen.sh \
&& ./configure \
&& make \
&& cp src/pyflame utils/flame-chart-json /usr/bin \
&& rm -rf /tmp/pyflame-master
RUN wget -O /usr/bin/flamegraph.pl https://raw.githubusercontent.com/brendangregg/FlameGraph/master/flamegraph.pl \
&& chmod +x /usr/bin/flamegraph.pl
CMD ["pyflame", "--help"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.