-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile.case-triage-pathways
37 lines (31 loc) · 1.46 KB
/
Dockerfile.case-triage-pathways
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
FROM us-docker.pkg.dev/recidiviz-staging/recidiviz-base/default:latest
WORKDIR /app/recidiviz
# Add the rest of the application code once all dependencies are installed
COPY ./recidiviz/__init__.py .
COPY ./recidiviz/aggregated_metrics/ aggregated_metrics/
COPY ./recidiviz/big_query/ big_query/
COPY ./recidiviz/calculator/ calculator/
COPY ./recidiviz/case_triage/ case_triage/
COPY ./recidiviz/cloud_memorystore/ cloud_memorystore/
COPY ./recidiviz/cloud_storage/ cloud_storage/
COPY ./recidiviz/common/ common/
COPY ./recidiviz/firestore/ firestore/
COPY ./recidiviz/monitoring/ monitoring/
COPY ./recidiviz/observations/ observations/
COPY ./recidiviz/outliers/ outliers/
COPY ./recidiviz/persistence/ persistence/
COPY ./recidiviz/task_eligibility/ task_eligibility/
COPY ./recidiviz/tools/deploy/terraform/config/ tools/deploy/terraform/config/
COPY ./recidiviz/tools/pathways/ tools/pathways/
COPY ./recidiviz/tools/utils/ tools/utils/
COPY ./recidiviz/utils/ utils/
COPY ./recidiviz/workflows/ workflows/
WORKDIR /app
CMD pipenv run gunicorn -c gunicorn.conf.py --log-file=- -b :8080 recidiviz.case_triage.server:app
# This makes docker not report that our container is healthy until the flask workers are
# started and returning 200 on the `/health` endpoint. This is initially only used by
# our docker-test Github Action.
HEALTHCHECK --interval=5s --timeout=3s \
CMD curl -f http://localhost:8080/health || exit 1
RUN rm -rf /var/lib/apt/lists/*; \
apt-get clean;