Skip to content

Commit 823a56e

Browse files
committed
Added standard container labels
1 parent 89e58ec commit 823a56e

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

var/container/Dockerfile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
FROM python:3.12-alpine AS build
1+
FROM python:3.13-alpine AS build
22
ARG MRMAT_VERSION="0.0.0.dev0"
3+
ARG GIT_SHA=""
34
ARG WHEEL=""
45
ADD "$WHEEL" /
56
RUN pip install --user /mrmat_python_api_fastapi-*.whl
67

7-
FROM python:3.12-alpine
8+
FROM python:3.13-alpine
89
ARG MRMAT_VERSION="0.0.0.dev0"
9-
LABEL VERSION=$MRMAT_VERSION
10+
ARG GIT_SHA=""
11+
12+
LABEL org.opencontainers.image.title="MrMat :: Python API :: FastAPI"
13+
LABEL org.opencontainers.image.description="A demonstration of common API interactions using Python's FastAPI"
14+
LABEL org.opencontainers.image.authors="MrMat"
15+
LABEL org.opencontainers.image.vendor="The MrMat Organisation"
16+
LABEL org.opencontainers.image.licenses="MIT"
17+
LABEL org.opencontainers.image.version="$MRMAT_VERSION"
18+
LABEL org.opencontainers.image.revision="$GIT_SHA"
19+
LABEL org.opencontainers.image.source="https://github.com/MrMatAP/mrmat-python-api-fastapi"
20+
1021
RUN addgroup -g 1000 app && \
1122
adduser -g 'App User' -u 1000 -G app -D app
1223
COPY --from=build /root/.local /home/app/.local

0 commit comments

Comments
 (0)