From 95a838d93239f1c18bbf1bed8c72f65e5ae1d747 Mon Sep 17 00:00:00 2001 From: sithembiso Date: Mon, 12 Feb 2024 14:53:57 +0200 Subject: [PATCH] Update dockerfile. --- Dockerfile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index d79004a..2b85223 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,12 @@ -FROM alpine:3.10.3 +ARG PYVER=3.11.7 +ARG ALPTAG=3.18 +FROM python:${PYVER}-alpine${ALPTAG} -LABEL maintainer "Zappi DevOps " +LABEL maintainer "Zappi Site Reliability Engineering (SRE) " -ARG APP_DEPS="python py-setuptools" -ARG BUILD_DEPS="py-pip" -ARG CURATOR_VERSION="5.8.1" +ARG CURATOR_VERSION="8.0.10" -RUN apk --update add ${APP_DEPS} ${BUILD_DEPS} && \ - pip install elasticsearch-curator==${CURATOR_VERSION} && \ - apk del ${BUILD_DEPS} && \ - rm -rf /var/cache/apk/* +RUN pip3 install elasticsearch-curator==${CURATOR_VERSION} USER nobody:nobody -ENTRYPOINT ["/usr/bin/curator"] +ENTRYPOINT ["/usr/local/bin/curator"]