From 58d25fbfe9b4f8a8e0d491f779fb009392582637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20Montero=20L=C3=B3pez?= Date: Wed, 16 Oct 2024 15:01:35 +0200 Subject: [PATCH] Add `ENTRYPOINT`, bump Python version in `Dockerfile` * Dockerfile improvements: Add ENTRYPOINT, bump Python version (+build arg). * Dockerfile: Add `syntax` version and OCI 'source' Annotation (`LABEL`). --- Dockerfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 909013c..6781a1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,12 @@ -FROM python:3.9-slim -RUN pip3 install cloudinary-cli --no-cache +# syntax=docker/dockerfile:1 + +ARG PYTHON_VERSION +FROM python:${PYTHON_VERSION:-3.12-slim} + +# For available labels, see OCI Annotations Spec docs: +# https://specs.opencontainers.org/image-spec/annotations/#pre-defined-annotation-keys +LABEL org.opencontainers.image.source="https://github.com/cloudinary/cloudinary-cli" + +RUN pip3 install --no-cache cloudinary-cli + +ENTRYPOINT [ "cloudinary" ]