-
Notifications
You must be signed in to change notification settings - Fork 397
/
Dockerfile
55 lines (46 loc) · 1.08 KB
/
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
53
54
55
FROM debian:bookworm-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --force-yes --no-install-recommends \
build-essential \
libdebuginfod-dev \
libunwind-dev \
liblz4-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 VIRTUAL_ENV=/venv \
PYTHONDONTWRITEBYTECODE=1 \
PATH=/bin:$PATH \
CC=gcc \
CXX=g++
RUN python3 -m venv "$VIRTUAL_ENV"
ENV PATH="${VIRTUAL_ENV}/bin:/usr/lib/ccache:${PATH}" \
PYTHON="${VIRTUAL_ENV}/bin/python" \
MEMRAY_MINIMIZE_INLINING="1"
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 \
pkgconfig \
setuptools \
wheel
RUN npm install -g prettier
WORKDIR /src