Skip to content

Commit 4bde2d0

Browse files
[dockerfile] Improvements
1 parent ff5e849 commit 4bde2d0

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@ USER root
55
ENV DEBIAN_FRONTEND=noninteractive
66

77
RUN set -x \
8-
&& apt-get update \
9-
&& apt-get -y install build-essential curl php-cli python3 python3-pip xz-utils \
10-
&& apt-get -y clean \
11-
&& rm -rf /var/lib/apt/lists/*
12-
8+
&& apt-get update \
9+
&& apt-get -y install --no-install-recommends build-essential curl php-cli python3 python3-pip xz-utils \
10+
&& apt-get -y clean \
11+
&& rm -rf /var/lib/apt/lists/*
1312
RUN set -x \
14-
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 1
13+
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 1
1514

1615
RUN set -x \
1716
&& curl -OL "https://go.dev/dl/go1.25.1.linux-amd64.tar.gz" \
1817
&& echo "7716a0d940a0f6ae8e1f3b3f4f36299dc53e31b16840dbd171254312c41ca12e go1.25.1.linux-amd64.tar.gz" | sha256sum -c - \
1918
&& tar -C /usr/local -xzf go1.25.1.linux-amd64.tar.gz \
2019
&& chmod +x /usr/local/go/bin/go \
21-
&& ln -s /usr/local/go/bin/go /usr/local/bin/go
20+
&& ln -s /usr/local/go/bin/go /usr/local/bin/go \
21+
&& rm go1.25.1.linux-amd64.tar.gz
22+

base_images/Dockerfile.python-3.11-ddprof

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
FROM python:3.11 AS base
22

3-
ENV DD_PROFILING_ENABLED true
4-
ENV DD_TRACE_ENABLED false
5-
ENV DD_TRACE_DEBUG true
6-
ENV DD_PROFILING_EXPORT_LIBDD_ENABLED 1
7-
ENV DD_PROFILING_EXPORT_PY_ENABLED 0
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
ENV DD_PROFILING_ENABLED=true
6+
ENV DD_TRACE_ENABLED=false
7+
ENV DD_TRACE_DEBUG=true
8+
ENV DD_PROFILING_EXPORT_LIBDD_ENABLED=1
9+
ENV DD_PROFILING_EXPORT_PY_ENABLED=0
810
ENV DD_PROFILING_OUTPUT_PPROF="/app/data/profiles"
911

1012
# Native profiler deps
11-
RUN apt-get update && apt-get install -y \
13+
RUN apt-get update && apt-get install --no-install-recommends -y \
1214
curl \
1315
jq \
1416
wget \
17+
&& apt-get clean \
1518
&& rm -rf /var/lib/apt/lists/*
1619

1720
# Allow user to force a more recent install

0 commit comments

Comments
 (0)