Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Add dockerfile #174

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ubuntu:16.04

RUN apt-get -y update && \
apt-get install -yqq --no-install-recommends \
software-properties-common autoconf automake autotools-dev g++ pkg-config libtool make && \
apt-get clean


RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get -y update && \
apt-get install -yqq --no-install-recommends \
python2.7-dev python3.5-dev python3.6-dev && \
apt-get clean

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ make
The `make` command will produce an executable at `src/pyflame` that you can run
and use.

Or you can use docker to build pyflame
```bash
sudo docker build --tag pyflame .
sudo docker run -it -v $(pwd):/root/pyflame pyflame /bin/bash -c "cd /root/pyflame;./autogen.sh;./configure;make"
```
This will also produce the executable at `src/pyflame`, which support py2.6/2.7/3.4/3.5/3.6

Optionally, if you have `virtualenv` installed, you can test the executable you
produced using `make check`.

Expand Down