Skip to content

Commit

Permalink
Add ENTRYPOINT, bump Python version in Dockerfile
Browse files Browse the repository at this point in the history
* Dockerfile improvements: Add ENTRYPOINT, bump Python version (+build arg).

* Dockerfile: Add `syntax` version and OCI 'source' Annotation (`LABEL`).
  • Loading branch information
pataquets authored Oct 16, 2024
1 parent 04c4a39 commit 58d25fb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

0 comments on commit 58d25fb

Please sign in to comment.