Skip to content

Commit

Permalink
Install linux-headers in dockerfile
Browse files Browse the repository at this point in the history
This is required to build psutil. Without this patch, I get:

psutil/_psutil_posix.c:29:29: fatal error: linux/types.h: No such file or directory

After this patch, 'docker build' completes successfully.

See also: giampaolo/psutil#872
  • Loading branch information
njsmith committed Jul 20, 2018
1 parent e5c88ce commit 67f0469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV SQLITE_DB=/data/vmprof.db

RUN apk add --no-cache python3 \
py3-yaml py3-cryptography py3-six py3-requests sqlite py-pysqlite libunwind-dev uwsgi-python3 \
gcc g++ musl-dev postgresql-dev python3-dev git
gcc g++ musl-dev linux-headers postgresql-dev python3-dev git

COPY requirements /usr/src/requirements

Expand Down

0 comments on commit 67f0469

Please sign in to comment.