bump/pin python:3.12-alpine3.20
- separate direct/indirect python deps
- bump prometheus-es-exporter from 0.14.0 to 0.14.1
- pin elasticsearch==7.13.4
Related-To: PRODX-47206
Change-Id: I886aafab5e35da6dbca018bfe234457f2602ec06
diff --git a/Dockerfile b/Dockerfile
index c0ce628..d1d3a11 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,12 +1,9 @@
-FROM python:3.9.15-alpine3.16
-
-LABEL build_date="2022-11-21"
-
-RUN apk upgrade --update
+FROM python:3.12-alpine3.20
WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
-RUN pip install --upgrade pip -r requirements.txt
+RUN apk upgrade --no-cache && \
+ pip install --upgrade pip -r requirements.txt
EXPOSE 9206