Skip to content

Commit 58d25fb

Browse files
authored
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`).
1 parent 04c4a39 commit 58d25fb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Dockerfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
FROM python:3.9-slim
2-
RUN pip3 install cloudinary-cli --no-cache
1+
# syntax=docker/dockerfile:1
2+
3+
ARG PYTHON_VERSION
4+
FROM python:${PYTHON_VERSION:-3.12-slim}
5+
6+
# For available labels, see OCI Annotations Spec docs:
7+
# https://specs.opencontainers.org/image-spec/annotations/#pre-defined-annotation-keys
8+
LABEL org.opencontainers.image.source="https://github.com/cloudinary/cloudinary-cli"
9+
10+
RUN pip3 install --no-cache cloudinary-cli
11+
12+
ENTRYPOINT [ "cloudinary" ]

0 commit comments

Comments
 (0)