forked from bloomberg/memray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (43 loc) · 1008 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM debian:latest
RUN apt-get update \
&& apt-get install -y --force-yes --no-install-recommends \
build-essential \
libunwind-dev \
pkg-config \
python3-dev \
python3-dbg \
python3-pip \
python3-venv \
make \
cmake \
gdb \
valgrind \
lcov \
nodejs \
npm \
clang-format \
git \
ccache \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV PYTHON=/venv/bin/python \
VIRTUAL_ENV=/venv \
PYTHONDONTWRITEBYTECODE=1 \
PATH=/bin:$PATH \
CC=gcc \
CXX=g++
RUN python3.9 -m venv /venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY requirements-test.txt requirements-extra.txt requirements-docs.txt /tmp/
RUN $PYTHON -m pip install -U \
-r /tmp/requirements-extra.txt \
-r /tmp/requirements-test.txt \
-r /tmp/requirements-docs.txt \
cython \
setuptools \
wheel
RUN npm install -g prettier
RUN ln -s /usr/bin/ccache /bin/g++ \
&& ln -s /usr/bin/ccache /bin/gcc
WORKDIR /src