@@ -41,6 +41,7 @@ FROM base as build
4141LABEL maintainer=
"Denys Zhdanov <[email protected] >" 4242
4343ARG python_binary=python3
44+ ARG python_extra_flags="--single-version-externally-managed --root=/"
4445ENV PYTHONDONTWRITEBYTECODE=1
4546
4647RUN true \
@@ -89,7 +90,7 @@ ARG whisper_repo=https://github.com/graphite-project/whisper.git
8990RUN git clone -b ${whisper_version} --depth 1 ${whisper_repo} /usr/local/src/whisper \
9091 && cd /usr/local/src/whisper \
9192 && . /opt/graphite/bin/activate \
92- && $python_binary ./setup.py install --single-version-externally-managed --root=/
93+ && $python_binary ./setup.py install $python_extra_flags
9394
9495# install carbon
9596ARG carbon_version=${version}
@@ -98,7 +99,7 @@ RUN . /opt/graphite/bin/activate \
9899 && git clone -b ${carbon_version} --depth 1 ${carbon_repo} /usr/local/src/carbon \
99100 && cd /usr/local/src/carbon \
100101 && pip3 install -r requirements.txt \
101- && $python_binary ./setup.py install --single-version-externally-managed --root=/
102+ && $python_binary ./setup.py install $python_extra_flags
102103
103104# install graphite
104105ARG graphite_version=${version}
@@ -107,7 +108,7 @@ RUN . /opt/graphite/bin/activate \
107108 && git clone -b ${graphite_version} --depth 1 ${graphite_repo} /usr/local/src/graphite-web \
108109 && cd /usr/local/src/graphite-web \
109110 && pip3 install -r requirements.txt \
110- && $python_binary ./setup.py install --single-version-externally-managed --root=/
111+ && $python_binary ./setup.py install $python_extra_flags
111112
112113# install statsd
113114ARG statsd_version=0.9.0
0 commit comments