File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ COPY pyproject.toml poetry.lock ./
1313RUN mkdir /static
1414
1515RUN apt-get update \
16- && apt-get install -y libpq-dev gcc \
16+ && apt-get install -y libpq-dev gcc libpcre3 libpcre3-dev \
1717 && rm -rf /var/lib/apt/lists/* \
1818 && pip install --upgrade pip \
1919 && pip install poetry \
Original file line number Diff line number Diff line change 11; app.ini
2+
3+ ; NOTE: The configuration in this file came from the following
4+ ; sources. These should answer the "why" of the decision for
5+ ; each of the configuration options:
6+ ; - https://medium.com/bitcraft/docker-composing-a-python-3-flask-app-line-by-line-93b721105777
7+ ; - https://www.techatbloomberg.com/blog/configuring-uwsgi-production-deployment/
8+
29[uwsgi]
10+ strict = true
311protocol = uwsgi
412; This is the name of our Python file
513; minus the file extension
@@ -15,3 +23,11 @@ processes = 2
1523http = 0.0.0.0:5000
1624vacuum = true
1725die-on-term = true
26+ single-interpreter = true
27+ need-app = true
28+
29+ ; The logs in production are really hard to sift through because
30+ ; the /healthz route is called so often. We don't need to log
31+ ; every time the cluster does a healthcheck.
32+ route = ^/healthz donotlog:
33+ route = ^/metrics donotlog:
You can’t perform that action at this time.
0 commit comments