Merge pull request #10677 from mozilla/fix-py3-dockerfile
Preserve original uwsgi path in Python 3 container image
This commit is contained in:
Коммит
bbc589d631
|
@ -72,6 +72,10 @@ RUN pip3 install --no-cache-dir --exists-action=w --no-deps -r requirements/syst
|
||||||
&& pip3 install --no-cache-dir --exists-action=w --no-deps -r requirements/prod_py3.txt \
|
&& pip3 install --no-cache-dir --exists-action=w --no-deps -r requirements/prod_py3.txt \
|
||||||
&& pip3 install --no-cache-dir --exists-action=w --no-deps -e .
|
&& pip3 install --no-cache-dir --exists-action=w --no-deps -e .
|
||||||
|
|
||||||
|
# Link /usr/bin/uwsgi to /usr/local/bin/uwsgi, as that was the
|
||||||
|
# previous location of the binary when installed by apt-get.
|
||||||
|
RUN ln -s /usr/local/bin/uwsgi /usr/bin/uwsgi
|
||||||
|
|
||||||
# Install uwsgi statsd exporter to collect metrics from uwsgi when deployed
|
# Install uwsgi statsd exporter to collect metrics from uwsgi when deployed
|
||||||
WORKDIR /usr/lib/uwsgi/plugins
|
WORKDIR /usr/lib/uwsgi/plugins
|
||||||
RUN uwsgi --build-plugin https://github.com/Datadog/uwsgi-dogstatsd && \
|
RUN uwsgi --build-plugin https://github.com/Datadog/uwsgi-dogstatsd && \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче