Add version metadata and update Dockerfile labels for API and web services

This commit is contained in:
Georgiy Sitnikov committed 2026-08-14 11:29:23 +02:00
1 parent 011a3f7790
commit 0e00e1029c
3 files changed
+49 -6

No files matched your search

+19 -3
View File
@@ -15,11 +15,27 @@ COPY frontend/ ./
RUN npm run build
FROM nginx:alpine
ARG VERSION=dev
ARG VCS_REF=dev
ARG BUILD_DATE=unknown
LABEL maintainer="Duarte Santos https://github.com/DuarteSantos8" \
org.opencontainers.image.title="opengym-web" \
org.opencontainers.image.description="Frontend for Self-hosted gym & body-weight tracker — plan routines, log workouts (supersets & cardio too), track your weight and progress, passkey login. Your data, your server." \
org.opencontainers.image.source="https://github.com/DuarteSantos8/openGym" \
org.opencontainers.image.url="http://ghcr.io/duartesantos8/opengym-web" \
org.opencontainers.image.documentation="https://github.com/DuarteSantos8/openGym#" \
org.opencontainers.image.licenses="AGPL-3.0 license" \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.created=$BUILD_DATE
COPY web/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
# exercise media (img/gif) is mounted at runtime from the media volume
HEALTHCHECK --interval=5m \
--timeout=5s \
--retries=3 \
CMD curl -fs http://localhost/
--timeout=5s \
--retries=3 \
CMD curl -fs http://localhost/